Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "Web Development in Microsoft Visual Studio 2010. Slide 2 Lecture Overview How to create a first ASP.NET application."— Presentation transcript:

1 Web Development in Microsoft Visual Studio 2010

2 Slide 2 Lecture Overview How to create a first ASP.NET application

3 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

4 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

5 Slide 5 ASP.NET Development in Visual Studio (Illustration)

6 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

7 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

8 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

9 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

10 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


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

Similar presentations


Ads by Google