Академический Документы
Профессиональный Документы
Культура Документы
Using
Microsoft® Visual
Studio® 2008
Module 2: Creating Web Applications by Using Microsoft
Visual Studio 2008 and Microsoft .NET-Based Languages
• Debugging support
• Customizable interface
Server Solution
Explorer Explorer
Toolbox Properties
Create a Design
Specification
Build
Deploy
Web Application Types and File Structure
• Other files
Files not based on a programming language
Demonstration: Creating a Web Application Project
• Populate the ASP.NET Web Form
Default.
aspx
Which
language
?
Visual C# Visual Basic
code code
HTML
JIT compiler
MSIL
Runtime
Native
code
What Are Namespaces?
• Group related classes
Logical, not physical, grouping
Namespaces are hierarchical
[Visual C#]
using System.Data.SqlClient;
[Visual Basic]
Imports System.Data.SqlClient
• Creating a Class
Component
[Visual Basic]
Public Class Shipping
Function CalShipping (ByVal price As Single) As Single
...
Return (cost)
End Function
End Class
Accessing Components in an ASP.NET Web Form
• Add a reference to the DLL
namespace CompanyA
{ Namespace CompanyA
class Shipping Class Shipping
{ Function CalShipping (…)
public void CalShipping (…) { } End Class
} End Namespace
} component.dll component.dll
Logon information
Master Page
Logon Page benefitsMaster.master
login.aspx
Benefits Lab Web benefitsMaster.master
Prospectus
prospectus.aspx
prospectus.aspx Doctors User Control XML Web
LINQ to SQL doctors.aspx nameDate.ascx Service
Classes DentalService1.asmx
Doctors.dbml
Doctors Dentists
XML Files
Lab Review
Review Questions
• How did you create a Web site?
• Tools