Follow the below simple steps to create the new WebSite in visual studio:
Step 1:- Open Visual Studio and click on File then select New> Web Site as Shown in below image:
Step 2:- A new popup window will be display, select visual C# or Visual Basic then select Asp.Net Empty Web Site as shown in below image.
Select Web location where you want to save the website from File System(a location in your local server) or HTTP (a http live location) or FTP(a remote server location).
write a name for new website and set the appropriate location where you want to save the project and then finally click on OK button, this will create a new empty website.
Step 3:- Open Solution Explorer from right side as shown in below image.
In solution window right click on website name and click on Add and select Add New Item then a New Popup window will be display.
Step 4:- In New popup window select Visual C# from left side then select Web Form and give a name to Web form and click Add.
Step 5:- After the above step a new form(Page) added in website, after opening this form(page) the window will be display as below image :
You can drag and drop Control in page.aspx page from left side Toolbox as below image or you can write code by yourself to design the form.
To view/Change the Property of a control, select control and press F4 as shown in below image.
Below image shows the default code of .aspx.cs file. where we write code to handle the page events.