Tuesday, June 23, 2009

Sample ASP.NET Web App - Registration Form

Hi Everyone,
Finally we are here to build our first .NET web application, we are going to build a web based registration form, that is done in a 3-tier Architecture.
Consider that you have all necessary softwares (Visual Studio 2005/2008/express, SQL Server 2005/2008/express) installed, with no delay lets start our project.

Step 1. Open Visual Studio (any version that you have installed) and goto
File\New\Project

Step 2. An open view dialog window is displayed with "Project Types" on the left where you given an option to select the type of project as a C# or VB or VC++ project etc.. and to the right you have the availble types of application you can do and down at the bottom you see the path where your project is stored and the Name of the Project.
Now select C#, to your left of that window and select "ASP.NET Web Application" to the right as we are going to create a website. Give any name (in this example i give it as ,'registrationWebApplication'. Before clicking on OK make sure you have the checkbox (Create Directory for Solution Option) to the right checked. we will talk about this later. Go ahead an click on OK.

Step 3. Now Visual Studio Creates a project folder with the name that you gave, in our case it will be 'registrationWebApplication' at
c:\\documents\\Projects\
and also gives you an interface where we can start building our application. This is how it looks:


Step4: This is where every .NET Developer lives most of their life, so better we know what we are looking at. I am not going to explain each and every thing in detail, but will explain the necessary parts for now and rest are explained on the go.
To your top-right is "Solution Explorer" where every webpage that we create, any refereces that we make to our website, any images that we add to our website, anything that you have for the project is seen. Solution Explorer is on of the main places that we visit and work on a lot in .NET.
To your bottom-right is "Properties Window" thats where we set the properties of any and every control that we use in our project like Textboxes, lables, buttons, checkboxes, radio buttons, each and every control's properties are given here. Trust me, we are going to use this a lot.
To the Left you have "Toolbox" where you see several tabs with lot of .NET controls and HTML controls. This is where we get our control for the website like textboxes, buttons, and hell lot of other control that are provided with .NET by default
and if you see to the left bottom next to the Toolbox you see another tab "Server Explorer" which is used for database connections , we will discuss this later. but for now lets not waste any time and jump into our project.

Continue reading next post..."Sample ASP.NET Web App - Registration From -2"

No comments:

Post a Comment