Professional Documents
Culture Documents
Creating Web Applications by Using Microsoft Visual Studio 2008 and Languages
Creating Web Applications by Using Microsoft Visual Studio 2008 and Languages
Creating Web Applications by Using Microsoft Visual Studio 2008 and Languages
• Debugging support
• Customizable interface
Object Browser
Editor/Browser
Solution
Explorer
Server
Explorer
Properties
Toolbox
Dynamic Help
Task List
Lesson: Creating an ASP.NET Web Application Project
Create
CreateaaDesign
Design
Specification
Specification
Create
Createaa Create
Createthe
theInterface
Interface Test
Testand
and
New
NewProject
Project and
andWrite
WriteCode
Code Debug
Debug
Build
Build
Visual Studio 2008
Deploy
Deploy
Web Application Files
• Solution files (.sln, .suo)
Documents
Documents Inetpub
Inetpub
Visual
Visual Studio
Studio
wwwroot
wwwroot
Projects
Projects
Solution
Solution ProjectA
ProjectA
Solution.sln ProjectA.vbproj
WebForm1.aspx
Development Files WebForm1.aspx.vb
(Code-behind page)
default.aspx
Which language?
JIT MSIL
compiler
Runtime
Native
code
What Are Namespaces?
• Group related classes
Logical, not physical, grouping
Namespaces are hierarchical
Imports System.Data.SqlClient
• Creating a Class
component
component
Web
Web Web
Web Windows
Windows
application
application application
application application
application
Creating a Class
• Create a Class Library project in Visual Studio 2008
Visual Studio 2008 creates a default namespace
component.dll
component.dll
Namespace CompanyA
namespace CompanyA
Class Shipping {
Function ShippingCost (…) class Shipping
{
End Class
public void ShippingCost (…) { }
End Namespace }
}
• Use the object:
sngShipping = _ sngShipping =
x.ShippingCost(sngPrice) x.ShippingCost(sngPrice);
Demonstration: Creating a Class in Visual Studio
2008
• Create a new Class Library project
Logon information
Virtual machine 2310C_02
User name Student
Password Pa$$w0rd
Logon Page
Login.aspx
Benefits
Coho Home Page Page Header ASPState
Winery Default.aspx Header.ascx
Menu
Registration Component
Register.aspx Class1.vb or Class1.cs Web.
tempdb
config
XML
Doctors Dentists
Files
Lab Review
Module Review and Takeaways
Review Questions
• How would you select a .NET-based language to create a
new Web application project?
• What role does the common language runtime play in
running an ASP.NET page?
• What is the role of the just-in-time (JIT) compilation?