• Subscribe to this RSS feed
  • Receive updates as soon as they are posted.
August 13 , 2010 | | In: ASP.Net, ASP.Net Tutorials

5 Nifty Things You Can Do With a Path

The ‘Path’ class, in System.IO is very useful and can save you a lot of time and work in getting what you need out of the path. In Classic ASP, using VBScript, with all the mid/left/right functions was a chore. Then, in ASP.Net, these were updated and a little easier, using the substring function. However, that’s not nearly as easy as how you can do it using the ‘Path’ class. Read the rest of this entry »

In order to get a reference to a particular list in Sharepoint, here’s the code to do so (let’s assume your the list name is ‘Customers’):

SPList MyList = SPContext.Current.Web.Lists["Customers"];
August 12 , 2010 | | In: ASP.Net, ASP.Net Tips, Visual Studio

Formatting text in HTML Source View

If the code in your Source View seems unorganized and unreadable, there is a simple way, in Visual Studio, to format the text into a more readable format. What it actually does, is to create a hierarchical, tabbed view of your HTML.

All you need to do is to highlight the text you need reformatted (if it’s the entire file, press Ctrl-A to select all the text), then right-click somewhere in the text, and choose ‘Format Selection’.

That’s all there is to it -voila! - your text is reformatted.

August 12 , 2010 | | In: SharePoint, SharePoint Tips

Iterate Through List Collection

Here’s the code needed (C#) to iterate through the lists collection in a web application, and display them on a page, using a literal control for each one.
Read the rest of this entry »

To create an MDI (Multiple Document Interface) application in your Winforms Project, start with creating a new WinForms project. This creates one main form for the application. Go to the Properties window for this form and set the ‘IsMDIContainer’ to TRUE. This sets up the form as an MDI container for child windows.

Being that an MDI form is a container, it is a container for child forms/windows. Child forms/windows are forms that show up only inside the MDI container. To open a child form, you need to add code like the following: Read the rest of this entry »

August 12 , 2010 | | In: WinForms, WinForms Tips

Appending Text to a TextBox

In the old days, appending text to a textbox meant concatenation  – something like:

TextBox1.Text=TextBox1.Text + myNewText

or:

TextBox1.Text+=MyNewText

Instead of this, we now have:

TextBox1.Text.AppendText(MyNewText)

This is for a use in which the StringBuilder class would be overkill. Plus, this has much less overhead than the older concatenation method also. It’s faster and more efficient. That’s all I needed to hear.

Two of the most common scopes used for features are ‘Site’ and ‘Web’. When using the ‘Web’ scope, the feature can be used anywhere in the Web application. If, instead you are using the ‘Site’ scope, the feature is only available in the particular Site Collection in which it’s installed. Read the rest of this entry »

August 11 , 2010 | | In: Sharepoint 2010, SharePoint 2010 Tips

Where is the 12 Hive in 2010?

There is a movement now, to, instead of calling it the 12 Hive, which is based on a specific folder ’12′ (or in the case of SharePoint 2010 – ’14′), it’s becoming generally accepted that we should now call it the ‘SharePoint Root folder’. Read the rest of this entry »

August 11 , 2010 | | In: Visual Studio

Bookmarks in Visual Studio

Did you know you can add bookmarks in your Visual Studio code?

These can be very helpful to find particular sections that you will be working on from time to time. This is even more helpful when your code file is very large. Read the rest of this entry »

August 11 , 2010 | | In: Basic Web Miscellaneous

What is a URI?

Basically, URI stands for “Uniform Resource Identifier“.

It’s basically a set of characters which identifies the address of some resource on the web or network. It can be a URL, but it isn’t necessarily so.


 

DreamTemplate - Web Templates
-->