Net-informations.com
SiteMap  | About    

First Asp.Net Program

ASP.NET is integrated with Visual Studio .NET, which provides a GUI designer, a rich toolbox, and a fully integrated debugger. In ASP.NET, you can write the HTML code in the .aspx file and the code for programming logic in the code behind file (.aspx.vb or .aspx.cs ) depends on which .Net language you are selected. Web Forms allow you to apply Rapid Application Development techniques to building web applications. Simply drag and drop controls onto your form, double-click on a control, and write the code respond to the associated event. You can program ASP.NET in any language that supports the .NET CLS.

Select Visual Studio from Start->All Programs . Select New Web Site from File menu of Visual Studio.

vs-menu

Then you can see a window similar to the following image.

new-website

Select ASP.NET Web Site from the New Web Site dialog box. The Name and Location edit fields will contain default values. If you want to change the name , you can do it by editing the Location field. From this dialog box you can select which language (C# or VB.NET) you want to develop ASP.NET website. You can select your convenient language from the Language combobox.

After click the OK button you will get a blank form. You can select controls from the Toolbox which is located left side to the blank form.

Click on the Label control and drag it to the design surface. It will automatically go to the upper-left corner of the design surface and contain the word Label.

tool-box

Select the label control and change the Text property of label control to "This is my first asp.net program". The property window is placed right side down of your Visual Studio Environment.

properties

After the coding, press F5 to run the web application. When either the C# or VB.NET version is run, it will look like the browser shown.

output






net-informations.com (C) 2017    Founded by raps mk
All Rights Reserved. All other trademarks are property of their respective owners.