module 2: using microsoft visual studio.net. overview overview of visual studio.net creating an...

19
Module 2: Using Microsoft Visual Studio .NET

Upload: martina-lynch

Post on 04-Jan-2016

224 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project

Module 2:

Using Microsoft

Visual Studio .NET

Page 2: Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project

Overview

Overview of Visual Studio .NET Creating an ASP.NET Web Application

Project

Page 3: Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project

Objectives

Navigate the Visual Studio.NET integrated development environment Create, build and view an ASP.NET Web appl. Project. Explain the purpose of Visual Studio.NET Explain the IDE opening screen links Identify the available project types and templates. Identify the available windows in the IDE

Page 4: Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project

Lesson: Overview of Visual Studio .NET

Why Visual Studio .NET? Start Page Available Project Templates Integrated Development Environment

(IDE)

Page 5: Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project

Why Visual Studio .NET?

One IDE for multiple languages and multiple project typesIt has a single IDE that provides a consistent look and feel. Features that were available for only one language are now available to all languages.

Page 6: Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project

Why Visual Studio .NET?

Multiple languages within a projectMs.NET-based languages are: Ms Visual Basic.NET, C#, Ms Visual C++

Multiple project types within a solutionIt supports the development of multiple project types, ranging from Ms Windows-based apps to ASP.NET Web apps, to XML Web services

Page 7: Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project

Why Visual Studio .NET?

“Work on several projects without having to change development environments and learn new tool interfaces or languages.

Integrated browserIt contains a built-in browser that is based on Ms IE. The browser is integrated into the IDE and can be accessed from multiple windows and menus.Your web site can be view during the development cycle without having to transfer to another program and retype URL string.

Page 8: Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project

Why Visual Studio .NET? Debugging support

It is designed to support debugging from your initial code through to the app release. Debugging support includes breakpoints, break expression, watch expression and the ability to step through code one stt or one procedure at a time.

Customizable interfaceBecause the Visual Studio.NET IDE can be customized at the window and tool level, you can show only those tools or windows that you are using at any given time and hide the remainder.

Page 9: Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project

Start Page

Online support access Recent projects

Page 10: Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project

Available Project Templates

The list of available templates is based on your Profile and language selections

Page 11: Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project

Integrated Development Environment (IDE)

Toolbox

SolutionExplorer

Document Windows

Properties

ServerExplorer

Object Browser

View Tabs

Page 12: Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project

Lesson: Creating an ASP.NET Web Application Project

The Development Process Web Application Files Web Site Type

Page 13: Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project

The Development Process

Create a DesignSpecification

Create a DesignSpecification

BuildBuild

Test and Debug

Test and Debug

Create the Interface and Write Code

Create the Interface and Write Code

Create a New ProjectCreate a

New Project

Visual Studio .NET

DeployDeploy

Page 14: Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project

Web Application Files• ASP.NET Web Forms (.aspx)

ASP.NET Web Forms are used when you need to build dynamic Web sites that will be accessed directly by users. It may be supported by a code behind page that is designated by the extension WebForm.aspx.cs

• ASP.NET Web services (.asmx)Web services are used when you want to create dynamic web sites that only be accessed by other programs.It may be supported by a code behind page that is designated by the extension WebForm.aspx.cs

• Classes, code-behind pages (.vb or .cs)Code-behind pages carry two extensions, the page type (.aspx or .asmx) and the language extension (.cs). Eg: WebForm.aspx.cs

• Web.config file A Web.Config file contains the configuration setting for the Web

application

Page 15: Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project

Web Site Type

Page 16: Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project

Web Site Type…use when File-system : Create Web pages on local computer or on

a shared drive. No IIS installed.

Local IIS : Create Web pages on local computer. IIS installed. Web site will be accessible to other computers.

FTP : Web site already exist on a remote computer that has been configured as an FTP server. Cannot create FTP Web site, only open the site.

Remote : Create a Web site by using IIS running on a remote computer. The remote computer must be configured with Front Page Server Extension.

Page 17: Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project

Review

Overview of Visual Studio .NET Creating an ASP.NET Web Application

Project

Page 18: Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project

Exercise What is the difference between Server Explorer and

Solution Explorer in Visual Studio.NET?

How do you add a new Web form to a Web application?

How do you view a Web form in the Visual Studio.NET browser?

List THREE Web site type?

Explain the advantages and disadvantages of File System and Local IIS.

Page 19: Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project

~ End of Slides ~