dotnetwarriors.com

Creating Asp.Net WebSite in Visual Studio

Jul 18, 2018 Asp.Net C# Visual Studio 116
In this Tutorial i will explain how to create new WebSite in asp.net using microsoft visual studio.

 

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:

Creating Asp.Net WebSite in Visual Studio

 

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.

 

Creating Asp.Net WebSite in Visual Studio

 

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.

 

Creating Asp.Net WebSite in Visual Studio

 

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.

 

Creating Asp.Net WebSite in Visual Studio

 

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 :

 

Creating Asp.Net WebSite in Visual Studio

 

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.

 

Creating Asp.Net WebSite in Visual Studio

 

To view/Change the Property of a control, select control and press F4 as shown in below image.

 

Creating Asp.Net WebSite in Visual Studio

 

 

Below image shows the default code of .aspx.cs file. where we write code to handle the page events.

 

Creating Asp.Net WebSite in Visual Studio

 

 





Share This Article :

Comments


Add Comment


 
Security Code :
16 + 14 =