Getting started with First asp.net Program
We are going to create first asp.net program. All you need to download Microsoft Visual Studio(VS) and we are ready to go. I will use VS2010 for creating these programs.
Now, let's go step by step:
1. Open Visual Studio.
2. Go to File => New => Asp.Net Empty Website and then select location and name. Here I set name as AspWebsite.
4. Select solution explorer & right click on solution explorer. Select add new item. Alternatively select solution explorer and press button ctrl+shift+A. Both will leads to Add New Item.
5. Select Web Form and give it a good name. Here I give Welcome and then click Add. Also note that WebForm has .aspx extension. Also make sure you have selected Visual C# as your programming language from left pane.
6. At this time your page would look like this.
7. We will see details later. Under body tag there is a div tag. Just write your code that we want to display inside browser.
<div>
<h2>Wow My First Asp.Net Program!!</h2>
</div>
No comments:
Post a Comment