CLICK HERE TO DOWNLOAD PPT ON ASP .NET
Asp.net Presentation Transcript
1. Introduction to ASP.NET Web Development
2.CONTENTS Overview of ASP.NET
What is ASP.NET
What is .NET Stateless web paradigm
Code behind pages Response and Request objects Session and Application variables Control Composition Web Part Infrastructure Why Use ASP.NET?
3. Overview Asp1.0 was released in 1996 ASP.NET appreance at Wrox Conference in Washington D.C. in 1999
4. What is ASP.NET? Originally Active Server Pages (ASP) ASP.NET Successor of ASP Different paradigm (.NET Framework) Microsoft’s platform for building Web Applications Part of the .NET Framework Server Side Technology Comprised of Page Framework Server Side Controls Infrastructure Components
5. What is .NET? Microsoft’s software development platform Unified platform for ”all” development: Windows, Web, Mobile Same basic principles apply for all app types Runtime .NET Framework Free download from microsoft.com Dev tools Microsoft Visual Studio & third party tools Server products SQL Server, Sharepoint Portal Server etc.
6. Stateless web paradigm Client may return to any page at any time in any state State information is posted during each page request ASP.NET web controls automatically repost their own state to maintain the ViewState of the page
7. Code behind pages Binds HTML page to a code file written in a .NET language HTML page is encapsulated in a System.Web.UI.Page Namespace Events such as Page_Load may be handled All ASP.NET controls can be used as regular .NET objects Scripts in HTML page may call code behind functions Everything will eventually end up as HTML
8. Response and Request objects Response Represents the client browse Response.Redirect(http://www.microsoft.com) Request Represents the server Request.PhysicalApplicationPath
9. Session and Application variables Session variables Remembered until the client closes the browser (or the session timeout expires – default 20 minutes) Only for one client Session[“ValidUser”] = true Application variables Always remembered For all clients
10. Control Composition Web Parts can be easily built using other ASP.NET Controls Re-use functionality and services No need to write everything from scratch
11. Web Part Infrastructure End user personalization UI for layout and properties Integrated Web Part galleries Enable users to Drag/Drop functionality Part to Part Connections Enable rich data sharing Server and client side support
12. Why Use ASP.NET? Control-based, event-driven execution model for Web UI “VB for the Web” Cleanly encapsulated functionality Much less code required than ASP Executed via CLR as native code VB, C#, Jscript, 20 other .NET languages Faster execution than ASP Runs side-by-side with ASP apps Web Forms use “.ASPX” extension
0 comments