ASP.NET Module Subtitle
Objectives Introduction to ASP.NET ASP.NET and Ajax Concepts and Architecture ASP.NET Features Advanced ASP.NET ASP.NET and Ajax How to build website.
Looking Back: Active Server Pages What is ASP? Server-side scripting technology Files containing HTML and scripting code Access via HTTP requests Scripting code is interpreted on server side What can I do with ASP? Easily and quickly create simple Web applications Generate dynamic Web content Client-side scripting for validation
What’s Wrong with That? Mixes layout (HTML) and logic (scripting code) Interpreting ASP code leads to performance loss Uses scripting languages that are not strongly typed Microsoft JScript® Microsoft Visual Basic® Scripting Edition (VBScript) Browser compatibility No real state management No state sharing across Web forms State is lost when IIS fails Update files only when server is down
ASP.NET Core Concepts Separate layout and business logic Use services provided by the .NET Framework Code is compiled the first time a page is requested State management Make use of programming languages Update files while the server is running!
Supported Languages Visual Basic JScript C# C++ VBScript is unmanaged ! JScript C# New component-based language C++ Managed Extensions for C++ Others: Cobol, Smalltalk, ...
State Management Session State What is a session? Functionality Restricted to a logical application Context in which a user communicates with a server Functionality Request identification and classification Store data across multiple requests Session events Release of session data
Security 1/2 Reasons for Security Security Configuration Prevent access to areas of your Web server Record and store secure relevant user data Security Configuration <security> tag in Config.web file Authentication, Authorization.
Security 2/2 Authentication Authorization Validates user credentials Awards an authenticated identity Types of authentication Windows, integrating with IIS 5.0 Passport, centralized services provided by Microsoft Cookie, request attachment Authorization Determine whether request is permitted File and URL authorization
Caching Enhance performance of your Web application Output Caching Store and retrieve pages or objects Page caching Fragment caching
Working with Data 1/2 SQL and XML Essential Objects Namespaces Access and manipulate data Essential Objects SQLConnection, SQLCommand, and DataSet Namespaces System.Data and System.Data.SQL
Working with Data 2/2 ADO.NET Overview Disconnected data architecture Datasets are complete relational views of data XML and XML schema Windows Form Web Form B2B Internet Data Object Dataset XML
ASP.NET Application Structure ASP.NET Folders App_Data App_Code App_LocalResources App_GlobalResources App_Themes Bin
Server Controls Overview Web Forms Server Controls HTML control. ASP.NET control. Validation control. User control.
ASP.Net Feature Master Page. Custom User control. Theme and skin.
ASP.NET and Ajax Ajax referred to (Asynchronous JavaScript And XML). Make web apps more responsive Update only a portion of the page Users don’t have to: Wait for the entire page to refresh Re-orient themselves after a page refresh Provide real time updates Simulate “pushing” data to the browser
ASP.NET and Ajax Script Manager. Update Panel. Ajax Toolkit control.
Referenece The official ASP.NET website: http://asp.net/ The ASP.NET AJAX Control Toolkit: http://ajax.asp.net/ajaxtoolkit/ The official ASP.NET AJAX site: http://ajax.asp.net/