10
Web Development in Microsoft Visual Studio 2010

Web Development in Microsoft Visual Studio 2010. Slide 2 Lecture Overview How to create a first ASP.NET application

Embed Size (px)

Citation preview

Page 1: Web Development in Microsoft Visual Studio 2010. Slide 2 Lecture Overview How to create a first ASP.NET application

Web Development in Microsoft Visual

Studio 2010

Page 2: Web Development in Microsoft Visual Studio 2010. Slide 2 Lecture Overview How to create a first ASP.NET application

Slide 2

Lecture Overview How to create a first ASP.NET

application

Page 3: Web Development in Microsoft Visual Studio 2010. Slide 2 Lecture Overview How to create a first ASP.NET application

Slide 3

Introduction to Visual Studio 2010 All ASP.NET development and testing

can take place inside of Visual Studio 2010

A local Web server is provided for testing purposes It’s part of Visual Studio 2010

Intellisense works for server code and JavaScript and XHTML

Page 4: Web Development in Microsoft Visual Studio 2010. Slide 2 Lecture Overview How to create a first ASP.NET application

Slide 4

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

Page 5: Web Development in Microsoft Visual Studio 2010. Slide 2 Lecture Overview How to create a first ASP.NET application

Slide 5

ASP.NET Development in Visual Studio (Illustration)

Page 6: Web Development in Microsoft Visual Studio 2010. Slide 2 Lecture Overview How to create a first ASP.NET application

Slide 6

Toolbox Controls 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

Page 7: Web Development in Microsoft Visual Studio 2010. Slide 2 Lecture Overview How to create a first ASP.NET application

Slide 7

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

Page 8: Web Development in Microsoft Visual Studio 2010. Slide 2 Lecture Overview How to create a first ASP.NET application

Slide 8

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

Page 9: Web Development in Microsoft Visual Studio 2010. Slide 2 Lecture Overview How to create a first ASP.NET application

Slide 9

Creating a New Web Site (1) Click File, New, Web Site Select ASP.NET Web Site from the New

Web Site dialog box

Page 10: Web Development in Microsoft Visual Studio 2010. Slide 2 Lecture Overview How to create a first ASP.NET application

Slide 10

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