Docsity

Creating an ASP.NET Application using Microsoft Visual Studio 2010: A Comprehensive Guide, Slides of Computer Programming

Partial preview of the text

Download Creating an ASP.NET Application using Microsoft Visual Studio 2010: A Comprehensive Guide and more Slides Computer Programming in PDF only on Docsity!

Web Development in

Microsoft Visual Studio

Lecture Overview

 How to create a first ASP.NET application

Visual Studio Windows

 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

ASP.NET Development in

Visual Studio (Illustration)

The Design Surface

 It’s conceptually similar to the Windows Forms Designer  Views  Design view is displays a ‘rough’ visual representation of the page  Source view displays the code for the page itself

Debugging

 Debugging windows work the same way in desktop and ASP.NET applications  Set breakpoints on executable code lines  Print values to the Immediate window  Use Watch windows to interrogate the values of variables  It’s possible to debug client-side Java script  Note that script debugging must be enabled

Creating a New Web Site (2)

 Visual Studio creates  A default Web page named default.aspx  A code-behind file containing C# or VB code  A web.config file to configure the application