dev303 asp.net: leveraging visual studio.net for web projects tony goodhew product manager microsoft...

24
DEV303 ASP.NET: Leveraging Visual Studio .NET For Web Projects Tony Goodhew Product Manager Microsoft Corp

Upload: edith-hill

Post on 20-Jan-2016

217 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp

DEV303

ASP.NET: Leveraging Visual Studio .NET For Web Projects

Tony GoodhewProduct ManagerMicrosoft Corp

Page 2: DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp
Page 3: DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp

Agenda

Overview of web application concepts

Building a simple application

Adding data to web applications

Developing web applications in a team environment

Deploying your application

Page 4: DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp

Setting Up Development

Install IIS and FPSE on development server

Install .NET Framework and VS.NetFor remote servers can install “Remote Components Setup” instead of all of VS.Net

If installed IIS after .NET Framework/VS.Net Register ASP.NET with IIS: “aspnet_regiis –i”

Re-install “Remote Components Setup”

Add users to VS Developers, Debugger Users

Page 5: DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp

Visual Studio Web Projects

Visual Studio Web ProjectUnit representing a web application

Container for application and session state

Folder under \wwwroot or virtual directory in IIS

Marked as “Application” in IIS

Accessed via Fileshare or Frontpage ExtensionsUse Fileshare – local machine, remote web on local network, team development

Use Frontpage – remote web over internet, remote web not under \wwwroot

Page 6: DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp

ASP.NET Web Forms

A Web Form combines declarative tags (HTML, ASP directives, server controls and static text) with code

Good separation provided between code and tags using “code-behind”

<tags><tags>

Form1.aspForm1.asp

codecode

single filesingle file

<tags><tags>

Form1.aspxForm1.aspx

codecode

Form1.vbForm1.vb

separate filesseparate filesVisual Studio.NET

Page 7: DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp

Web Forms Designer

Drag/Drop WYSIWYG Form Designer

Optional Grid Layout

Double-click to write code behind controls

Page 8: DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp

HTML Designer

HTML and server control statement completion

Color-coding

Auto formatting

Client-event generation

Page 9: DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp

Code Editors

Color-coding

Statement completion

Design-time syntax checking

Server event generation

Page 10: DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp

Simple web applicationCreating web project

Designer features

Integrated debugging

Using virtual directories

Authoring on the “root web”

demodemo

Page 11: DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp

Connecting To Data

Use drag/drop and wizards to add data

Powerful database design toolsTable creation and schema editing

Stored procedure editing and debugging

Query designer

Rich databound UI using ASP.NET controls

Repeating data – Datagrid, Datalist

Core controls – Textbox, Dropdown, etc..

Page 12: DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp

Showing data in a grid

Using the datalist control

2-page master details

demodemo

Page 13: DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp

Team Development

Built-in Source Code Control SupportConnect to Visual Source Safe or any MSCCI provider

Available in Visual Studio Pro and higher

Recommended PracticesEnable multi-user checkout in VSS

Use LocalHost Development

Get/Merge changes before check-in

Same directory structure for all users

Per user development settings using User.ConfigDatabase connection, WebService URL, etc.

Page 14: DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp

Adding to Source Code Control

Enlisting from Source Code Control

Per user development settings

demodemo

Page 15: DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp

Application Deployment

“Copy Project” commandXCopy deployment

Deploy to UNC or FrontPage extended web

Option to remove sources

Web SetupCreates MSI based setup file

Custom install logic (e.g. - database creation)

Uninstall capability

Page 16: DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp

Using Copy Project

Creating a Web Setup

demodemo

Page 17: DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp

Visual Studio .Net 2003

The most productive ASP.NET development environment

Great designers

Powerful data tools

Integrated source code control

Deployment features

Page 18: DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp

Appendix…Appendix…

Page 19: DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp

Community ResourcesCommunity Resources

Try Visual Studio .NET NOW! – [add link here]

Visit http://www.asp.netDownload ASP.NET 1.1

Release notes and whitepapers

700+ Online Quickstart tutorial samples

Starter Kit applications with source

ASP.NET Forums

Page 20: DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp

Community Resources

Community Resourceshttp://www.microsoft.com/communities/default.mspx

Most Valuable Professional (MVP)http://www.mvp.support.microsoft.com/

NewsgroupsConverse online with Microsoft Newsgroups, including Worldwidehttp://www.microsoft.com/communities/newsgroups/default.mspx

User GroupsMeet and learn with your peershttp://www.microsoft.com/communities/usergroups/default.mspx

Page 21: DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp

Suggested Reading And Resources

The tools you need to put technology to work!The tools you need to put technology to work!

TITLETITLE AvailableAvailable

Microsoft® ASP.NET Microsoft® ASP.NET Programming with Microsoft Programming with Microsoft Visual Basic® .NET Version 2003 Visual Basic® .NET Version 2003 Step By Step: 0-7356-1934-4Step By Step: 0-7356-1934-4

TodayToday

Microsoft Press books are 20% off at the TechEd Bookstore

Also buy any TWO Microsoft Press books and get a FREE T-Shirt

Page 22: DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp

DiscussionDiscussion

Page 23: DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp

evaluationsevaluations

Page 24: DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp

© 2003 Microsoft Corporation. All rights reserved.© 2003 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.