Asp.NET ? Simply Server side language Simplified page development model Modular, well-factored, extensible architecture Superior debugging and tracing support Compiled, not interpreted Rich caching support Web farm scalable session state Automatically detects and recovers from errors
Web Forms in .NET Separate Code & Design Rich Web Forms Drag & Drop Design Like WinForms
Understand the Web Form Page Directive Server side code Form Normal HTML Structure Server Controls
Page Life Cycle Init PreInit Init PreLoad Complete Pre Load Control LoadRender Complete events Save Render UnloadStateComplete
You must Know PostBack communicates back to the server View State state stored in a hidden field on the page transported to the client and back to the server, Is not stored on the server
ASP.NET States Session State allows the state of objects (serializable) to be stored for a single session (lifetime of the user’s browser or specific timeout) Application State allows the state of objects (serializable) to be stored for the application across different sessions.
Starting ASP.NET Development Web Site Don’t use this, here for compatibility only Each page is dynamically loaded into memory Slow on first load after deployment No need to recompile for code change
Starting ASP.NET Development.. Web Application Recommended Compiles all pages into one DLL Faster on first load after deployment Must recompile whole site for code change