asp_net by sridhar

Views:
 
Category: Education
     
 

Presentation Description

A new way out with facebook presentations

Comments

Presentation Transcript

Introduction to ASP.NET Web Development:

Introduction to ASP.NET Web Development 10 November, 2003

Overview:

Overview Originally Active Server Pages (ASP) ASP.NET Successor of ASP Different paradigm (.NET Framework) Topics Stateless web paradigm Code behind pages Response and Request objects Session and Application variables

Stateless web paradigm:

Stateless web paradigm Client may return to any page at any time in any state State information is posted during each page request (?xxxxx=xxxxx) ASP.NET web controls automatically repost their own state to maintain the ViewState of the page

Code behind pages:

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 class 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

Response and Request objects:

Response and Request objects Response Represents the client browser Response.Redirect( http://www.microsoft.com ) Response.Cookies[“UserName”] = “Bob” Request Represents the server Request.PhysicalApplicationPath UserName = (String)Request.Cookies[“UserName”]

Session and Application variables:

Session and Application variables Session variables Hashtable-style collection of name-value pairs Remembered until the client closes the browser (or the session timeout expires – default 20 minutes) Only for one client Session[“ValidUser”] = true Application variables Hashtable-style collection of name-value pairs Always remembered For all clients Application[“NumClients”] = NumClients + 1

Q&A:

Q&A

authorStream Live Help