ASP.NET Tutorials

Using Button columns in GridView

01 April 2008
189959 Views

GridView control is one of the most powerful controls in ASP.NET 2.0. This control displays database records in typical tabular form, and provides features such as Sorting, Paging, Selection and Editing without writing a single line of code. It also has many different types of fields (columns) such as hyperlinks, images, checkboxes etc.
Using Button columns in GridView

Using Hyperlink columns in GridView

30 March 2008
51952 Views

GridView control is one of the most powerful controls in ASP.NET 2.0. This control displays database records in typical tabular form, and provides features such as Sorting, Paging, Selection and Editing without writing a single line of code. It also has many different types of fields (columns) such as hyperlinks, images, checkboxes etc.
Using Hyperlink columns in GridView


Dynammically Add Meta Tags and Java Script in ASP.NET 2.0 Content Page

27 March 2008
6693 Views

One of the best features Microsoft added in ASP.NET 2.0 is the introduction of Master Pages. ASP.NET automatically add basic HTML mark up in the master page such as html, head, title and body tag and allows developers to add content pages of the website to fill content place holders in the Master Page. By using these basic HTML elements developers can add external CSS and Java Script files just once in Master Page and all the content pages get those files automatically.

Dynammically Add CSS in ASP.NET 2.0 Content Page

27 March 2008
7175 Views

One of the best features Microsoft added in ASP.NET 2.0 is the introduction of Master Pages. ASP.NET automatically add basic HTML mark up in the master page such as html, head, title and body tag and allows developers to add content pages of the website to fill content place holders in the Master Page. By using these basic HTML elements developers can add external CSS and Java Script files just once in Master Page and all the content pages get those files automatically.

Connection String Encryption in Web.config using C#

26 March 2008
11146 Views

Almost all ASP.NET web sites connect database and one of the best practices in ASP.NET is to store your database connection string outside your source code typically in web configuration file (web.config). This gives you benefit of changing your database related information such as the server name, user id or password without any modification or compilation of your source code. To provide additional security of important connection string information you should always encrypt your connection string in web.config file.

Connection String Encryption in Web.config using VB.NET

26 March 2008
7775 Views

Almost all ASP.NET web sites connect database and one of the best practices in ASP.NET is to store your database connection string outside your source code typically in web configuration file (web.config). This gives you benefit of changing your database related information such as the server name, user id or password without any modification or compilation of your source code. To provide additional security of important connection string information you should always encrypt your connection string in web.config file.

Setting Controls Focus in ASP.NET 2.0

04 March 2008
3886 Views

One of the very important features of current successful websites is providing better user experience to the users. As a developer you need to make sure that your website user interface is simple and easy to use. One way you can achieve this is by providing better focus management of your controls. Controls such as textboxes, listboxes or drop down lists should get focus automatically at the page load time to save user time on extra mouse clicks.

Cross Page Posting in ASP.NET 2.0

04 March 2008
6392 Views

By default, buttons and other controls in ASP.NET pages post back to the same page that contains the control. Many times during web site development developers need to send user to a different page. We can use Server.Transfer method to move user between pages, however by using this technique the URL doesn't change.