Pages

05 June 2011

1.2.0) Creating Websites

2.1) Creating a New website and Adding New pages.

Webproject in Visual studio (VS) contains the folders and files(resources) that define Websites.

Creating a Web Site Project in Visual Studio:

1.) In Visual Studio choose File->New->Website
2.)Select Website type,location and programming language I am using Visual basic as the programming language and you may use c# as you feel comfortable.
3.)The hit OK.

This will create a File System for the website which will run locally using ASP.NET web server.(This is for development Options once the full project is finished you can port it over using FTP or any other transfer protocol to your actual production web server)

You may even use FTP based web development using a development server. Please contact your server admin to get details how you can log in to create a file system in the Development environment.

Creating a Web Application Project in Visual Studio:

Visual Studio provides another means of creating a website project using Web application Project. This can be used if you want to add new web application to an existing project.

Contents Of the Newly Created Site

ASP.NET adds specific folders with special user permission for specific files. Like App_Data which will be used to databases such as Microsoft SQL .mdf file. A user trying to access this folder will get permission error(HTTP 403 forbidden error).

Folders
  1. App_ Browser
  2. App_Code
  3. App_Data
  4. App_GlobalResources
  5. App_LocalResources
  6. App_Themes
  7. App_WebReferences
  8. Bin

Adding Web page :
Asp.NET Websites contain Web Form as their files which is a single file or a pair of files.
  1. On the Solution Explorer(Generally on the Right side of the window). Right click and click on Add New Item.
  2. In the New Item Dialog box click on web form
  3. Select the programming language for the form
  4. The Check the boxes indicatiog if it is a pair of files using Place Code in the Separate check box.



0 comments: