Creating an Asp Dot Net Website
It involves knowledge of the following
- Visual Studio IDE
- Adding an ASP Dot Net control
- Previewing a page in the browser
- Adding controls to the VWDE Toolbox
Usually the steps in creating an ASP .Net website are -
1. Download Visual Web Developer from asp.net website (use this url https://asp.net/downloads/essential/) and install it. This is free of cost available and you can use it without any hassle of buying a license.
2. Open Visual Web Developer from your Start menu by clicking on its "Microsoft Visual Web Developer 2008 Express Edition". It will take few seconds to open.
3. Go to File Menu and Click on New Web Site ....
4. A Dialogue box will appear asking for Template, Location, Language. Select/write the location in the location TextBox, Select ASP.NET Web Site as Tempate and Select Visual C# as language. Click OK.
5. This will create a default.aspx, default.aspx.cs (it is called as codebehind file) file, web.cofig file and an App_Data (It is used to place your database like MS Access or SQL Express or xml files ) folder by default.
6. Start writing few code. You can notice that as soon as you started writing code, Visual Web Develope will give intellisense (dropdown) to complete the code of the control.
Write a Label control and a Button control. You can notice that in the OnClick property of the Button control has been specified the name of the method that will fire when the button will be clicked. I will write this method in the Codebehind file.
7. Now press F7 key from the Keyboard and you will jump to the Codebehind file named default.aspx.cs. Alternatively you can click + symbol beside the default.aspx file and double click default.aspx.cs. Write few lines of code into it. In this file Page_Load method will be automatically written. I am writing SubmitMe method that will fire when Button will be clicked as stated above. Now Save all files by clicking on the Save All toolbar or by going through File->Save All.
8. Now hit F5 key from your keyboard and your application will start in the debug mode. Alternatively you can click on the Play button from the toolbar. This will ask you to modify the web.cofig file to start the application in the debug. Click OK button.
9. After few seconds a browser will open with your default.aspx page.
10. Try clicking the Submit button and you will see that a message "Hello World" appears in the browser.