Powered by Blogger.

Sunday, February 16, 2014

Creating a New ASP.NET 4 Web Site

Step-1:Start by creating a folder called RajWebSite in the root of your C drive using Windows Explorer or My Computer. Inside the folder, create another folder called Site. You should end up with a folder called C:\RajWebSite\Site.which in turn contains the Source and Resources folders. You still need to create the Site folderthough. If you want to follow along with VB.NET and C# at the same time, you can create two folders: RajWebSiteVB and RajWebSiteCS and use two instances of VWD.

Step-2:Start Visual Web Developer 2010 and choose File ? New Web Site or File ? New ? Web Site,depending on your version of VWD.

Step-3:In the Installed Templates area on the left, choose between Visual Basic and Visual C#.

Step-4:In the area in the middle select ASP.NET Empty Web Site.

Step-5:In the Web Location drop-down list, make sure that File System is selected. The other two options(HTTP and FTP) enable you to open a remote site running IIS with the so-called Microsoft FrontPage Server Extensions and open a site from an FTP server.

Step-6:Click the Browse button next to the location text box, browse to the folder you created in the first step, and click Open.

Step-7:Click OK and VWD creates the new site for you.
How It Works
As soon as you click OK, VWD creates a new, empty web site for you. This new web site contains nothing but a configuration file (called web.config.) In the Solution Explorer.
Because a web site based on the Empty Web Site template is just a simple Windows folder that VWD looks at, the actual folder on disk contains the same file.
An ASP.NET 4 web site consists of at least a single Web Form (a file with an .aspx extension), but usually it consists of a larger number of files.