1 / 21

Session 1

Session 1. Introduction to. Web Applications and ASP.NET. Session Objectives. Describe the following -. Web application Web application development cycle. Explain Active Server Pages. Explain the features of ASP.NET. Client/Server and Web Applications. Permanent Connection.

baker-nolan
Download Presentation

Session 1

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Session 1 Introduction to Web Applications and ASP.NET Building Applications using ASP.NET and C# / Session 1 / 1 of 21

  2. Session Objectives • Describe the following - • Web application • Web application development cycle • Explain Active Server Pages • Explain the features of ASP.NET Building Applications using ASP.NET and C# / Session 1 / 2 of 21

  3. Client/Server and Web Applications Permanent Connection Client-Server Application Client 1 Server Permanent Connection Client 2 HTTP Request Client 1 (Browser) ActiveX Data Objects (ADO) HTTP Response IIS Database Client 2 (Browser) Web Application Building Applications using ASP.NET and C# / Session 1 / 3 of 21

  4. Web-enabled Application Architecture Internet Proxy Server Client 1 (Browser) Web server HTTP Certificate Server Database Server Other servers FTP SMTP Exchange Server Server-based programs ASP CGI ISAPI Building Applications using ASP.NET and C# / Session 1 / 4 of 21

  5. HTTP at work Page Request Client (Browser) SERVER Send me “Introduction to Hypertext” Client (Browser) SERVER Introduction to Hypertext Building Applications using ASP.NET and C# / Session 1 / 5 of 21

  6. Network Interface and HTTP Service Internet Network Interface Transport Layer and Internet Layer (TCP / IP) Windows Sockets HTTP FTP Building Applications using ASP.NET and C# / Session 1 / 6 of 21

  7. Accessing Database Information Internet Client (Browser) Web server HTTP Database Server ODBC Building Applications using ASP.NET and C# / Session 1 / 7 of 21

  8. Web Application Development Cycle • Planning the Web application • Designing the application • Constructing and testing the components of the application • Going live • Production and Maintenance Building Applications using ASP.NET and C# / Session 1 / 8 of 21

  9. Web Application Development Process Idea A Planning Phase Functional Specifications complete? Construction and Testing No Yes Complete? Design Phase No Yes Design complete? Going Live No Yes Production and Maintenance A Building Applications using ASP.NET and C# / Session 1 / 9 of 21

  10. Scripting Web client: Browser Data entry Web Server: CGI Scripts Processing Server-based processing Web client: Browser JavaScript VBScript Web Server: CGI Scripts Data entry Processing Processing Client-side processing Building Applications using ASP.NET and C# / Session 1 / 10 of 21

  11. Validating Data HTML Form User input JavaScript data validation Data valid? No Yes Submit data to server Valid Data Building Applications using ASP.NET and C# / Session 1 / 11 of 21

  12. Client-Side Scripting Validate data Provide user interaction Dynamically change content Integration Specifies the scripting language <script language="JavaScript"> <!-- JavaScript statements; //--> </script> comment tags Building Applications using ASP.NET and C# / Session 1 / 12 of 21

  13. Active Server Pages <HTML><BODY> <CENTER><I><FONT COLOR="HOTPINK" size = 5> <%If Time >= #12:00:00 AM# And Time < #12:00:00 PM# Then%> "Now the time is between 12:00 am and 12:00 pm" <%Else%>" Now the time is between 12:00 pm and 12:00 am" <%End If%> </FONT></I></CENTER> </BODY></HTML> Executed on server Output Building Applications using ASP.NET and C# / Session 1 / 13 of 21

  14. Processing of ASP file HTTP Request Client (Browser) IIS HTTP Response ASP.DLL ActiveX Data Objects (ADO) VBScript IIS JavaScript Database ASP file Building Applications using ASP.NET and C# / Session 1 / 14 of 21

  15. Advantages of ASP Automatic compilation Web page with dynamic content ASCII text to a client browser Pros Inaccessible source code Building Applications using ASP.NET and C# / Session 1 / 15 of 21

  16. ASP file in a Web-based application HTTP Request Client (Browser) IIS HTTP Response Active Server Components • Active Server Pages (ASP) • JavaScript • VBScript • Active Server Pages (ASP) • JavaScript • VBScript • Active Server Pages (ASP) • JavaScript • VBScript Database Building Applications using ASP.NET and C# / Session 1 / 16 of 21

  17. Evolution of ASP.NET Denali First beta version of ASP ASP 1.0 Available as an add-on to IIS 3.0 ASP 2.0 Came as a part of windows NT 4.0 ASP 3.0 Came along with Windows 2000 ASP.NET Comes along with the .NET framework Building Applications using ASP.NET and C# / Session 1 / 17 of 21

  18. Drawbacks of ASP Only two non-typed languages VBScript and JavaScript Interpreted ASP pages Spaghetti-like mixture of code, HTML and text Using the same file. DRAWBACKS Extra code for functionality No Re-usage of code No debugging mechanism Shut down of web server to install a new version of a DLL Building Applications using ASP.NET and C# / Session 1 / 18 of 21

  19. Advantages of ASP.NET ASP.NET • Supports strongly typed languages like C#, VB • Compiled pages improving execution speed • An inbuilt method Trace, helps in debugging a page • Supports re-use of code by the mechanism of inheritance • Provides server controls that are declarative • ASP code is separated from the HTML design and text • No need to register component. Building Applications using ASP.NET and C# / Session 1 / 19 of 21

  20. Features of ASP.NET - 1 • Recognizes the type of client browser and accordingly display the contents to the client. • Adds functionality using C# or VB.NET ASP.NET • Uses server - side caching • Ships with many built-in server controls Building Applications using ASP.NET and C# / Session 1 / 20 of 21

  21. Features of ASP.NET - 2 • Refers hierarchical namespaces. • Global.asax file holds additional events ASP.NET • Web service - a function deployed and used over the web Building Applications using ASP.NET and C# / Session 1 / 21 of 21

More Related