Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
An overview of using microsoft visual studio 2012 for web development, focusing on creating asp.net applications. Topics include introducing visual studio, creating a first application, using the solution explorer, adding web forms, and working with the code editor and toolbox controls.
Typology: Slides
1 / 43
Introduce Visual Studio 2012 Create a first ASP.NET application
The Toolbox contains HTML controls and ASP.NET controls Drag control instances using Design or Source view The Solution Explorer lists the application’s files The Properties window is used to set object properties Other windows work as you would expect
You create a Web site in much the same way as you create a desktop project Click File / New / Web Site In the New Web Site dialog box Select ASP.NET Web site Select the desired folder (The folder should be empty or not already exist) Note that different framework versions are supported
Web forms (.aspx) make up the visual forms They are HTML5 documents There is a code behind file (.aspx.cs) Web.config contains configuration information It’s an XML document
If you select a Web Forms site, Jquery is included in the default template Site.master contains the application menu Styles contain cascading style sheets (.css)
Most windows work as you expect but the contents differ from those you see in desktop applications Solution Explorer contains project files but these files are very different from desktop files Toolbox controls look like desktop controls but they are not desktop controls The visual designers work differently too
Every .aspx file corresponds to a Web page Click Website / Add New Item Select Web Form Select the master page, if desired Set the name as desired
The Web Form editor allows you to Create HTML Create ASP.NET server side tags Create the “code behind” the form in a language such as Visual Basic or C# The Web form editor has three views Design / Split / Source
An ASP.NET Web page is made up of two files The .aspx file contains the HTML The .aspx.cs file contains the VB or C# code It works the same way as the Code Editor for desktop applications The event names differ a bit Page_Load instead of Form_Load for example
They are different controls than those used for desktop applications HTML controls are standard HTML controls that will work with any browser Other controls are server side controls that only work with IIS and ASP
Using the Toolbox, drag the desired control to the design surface You can drag to the design surface or the HTML editor Set properties using the Properties window Create event handlers using the Properties window