Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to ASP.NET. 2 © UW Business School, University of Washington 2004 Outline Static vs. Dynamic Web Pages.NET Framework Installing ASP.NET First.

Similar presentations


Presentation on theme: "Introduction to ASP.NET. 2 © UW Business School, University of Washington 2004 Outline Static vs. Dynamic Web Pages.NET Framework Installing ASP.NET First."— Presentation transcript:

1 Introduction to ASP.NET

2 2 © UW Business School, University of Washington 2004 Outline Static vs. Dynamic Web Pages.NET Framework Installing ASP.NET First ASP.NET Application

3 3 © UW Business School, University of Washington 2004 Static Web Pages Traditionally web only provides static information A Web page author composes an HTML page, and saves it as an.htm or.html file A user types a page request via URL into the browser, and the request is sent from the browser to the Web server The Web server receives the page request and locates the.htm/.html page in local file system The Web server sends the HTML stream back across the Internet to the client browser The browser interprets the HTML and displays the page

4 4 © UW Business School, University of Washington 2004 Processing a Request for an HTML Page

5 5 © UW Business School, University of Washington 2004 Dynamic Web Pages Content does not exist before a page is requested Content, at least part of it, is generated upon request For example: –the current time on the Web server –Online shopping basket Purpose: Transaction!

6 6 © UW Business School, University of Washington 2004 Components for a Web-Based System Web Server DB Web app Web Client Web app HTTP request (cleartext or SSL) HTTP reply (HTML, Javascript, VBscript, etc) Plugins: Perl ASP.NET JSP, etc Database connection: ADO, ODBC, etc. SQL Database Apache IIS Netscape etc… Firewall

7 7 © UW Business School, University of Washington 2004 CGI, ASP, and JSP CGI –Compiled –Difficult to modify and update –Consumes huge resources on the server ASP –Mix ASP script with HTML –Easy –ASP script itself needs to be interpreted every time it is requested JSP –Server side scripting based on Java –Available in different platforms –Concepts very similar to ASP

8 8 © UW Business School, University of Washington 2004 Java Java is simple Java is object-oriented Java is distributed Java is interpreted Java is robust Java is secure Java is architecture-neutral Java is portable Java is multithreaded Java is dynamic

9 9 © UW Business School, University of Washington 2004 The.NET Framework ASP.NET is used to develop dynamic Web applications within the.NET Framework The.NET Framework consists of: –A Common Language Runtime (CLR) –A hierarchical set of Base Class Libraries (BCL) The.NET Framework is the architectural model for creating programs that interface with the operating system and the base class libraries

10 10 © UW Business School, University of Washington 2004 The.NET Framework

11 11 © UW Business School, University of Washington 2004 Web Services Web services encompass a set of related standards that can enable any two computer applications to communicate and exchange data via a network. Key Web services technologies –XML –SOAP –WSDL –UDDI

12 12 © UW Business School, University of Washington 2004 ASP.NET Overcome the major drawbacks of ASP Supports VB and C# Have a rich set of controls

13 13 © UW Business School, University of Washington 2004 ASP.NET Installation Requirement for Operating Systems –Windows 2000/2003, or Windows XP Professional or Home Install the following –MDAC (Microsoft Data Access Components) Download MDAC 2.8 at www.microsoft.com/data (not SDK)www.microsoft.com/data Filename: MDAC_TYP.EXE (5.4 MB) –.NET Framework Redistributable version 1.1 Download at www.asp.netwww.asp.net Click Download link at the top right part of the window and choose to download.NET Filename: dotnetfx.exe (23.7 MB) –Web Matrix Download at www.asp.netwww.asp.net Filename: WebMatrix.msi (1.3 MB)

14 14 © UW Business School, University of Washington 2004 ASP.NET Installation (Cont’d) Edit WebMatrix.exe.config file located at C:\Program files\Microsoft ASP.NET WebMatrix\v0.6.812\ … … Insert this part

15 15 © UW Business School, University of Washington 2004 First ASP.NET Program First ASP.NET Program Sub Page_Load() Response.write ("This is my first line of ASP.NET _ program. ") Response.write ("More to come next week. ") End sub


Download ppt "Introduction to ASP.NET. 2 © UW Business School, University of Washington 2004 Outline Static vs. Dynamic Web Pages.NET Framework Installing ASP.NET First."

Similar presentations


Ads by Google