Escolar Documentos
Profissional Documentos
Cultura Documentos
NET Framework
By
SRIRAM.B
Introduction to ASP.NET
Introduction to ASP.NET Special Folders
Features of ASP.NET
- App_Code
Difference between ASP &
ASP.NET - App_Theme
ASP.NET Page Model - App_Data
ASP.NET Page Events - App_Web References
ASP.NET Page Directives
-App_Global Resources
ASP.NET Page Post Back
Model -App_Local Resources
ASP.NET Page Compilation
ASP.NET ViewState
Tracing & Debugging
Introduction to
ASP.NET
Introduction to ASP.NET
Active Server Pages (ASP) is the server-side technology for creating dynamic
Web pages. The client’s browser interpreted the HTML tags and displayed the
output on the browser screen
performance:
Features of
ASP.NET
Features of ASP.NET
Better Language Support
Better Controls
Data Control
Login Control
Navigation Control
WebParts
Master Pages, Themes &
Skins
Personalization
Localization
SQL Caching Invalidation
AJAX
Features of ASP.NET ..
Developer Productivity
Data Controls
Navigation Controls
Using the new personalization services you can easily create customized
experiences within Web applications. The Profile object enables
developers to easily build strongly-typed, sticky data stores for user
accounts and build highly customized, relationship based experiences.
At the same time, a developer can leverage Web Parts and the
personalization service to enable Web site visitors to completely control
the layout and behavior of the site, with the knowledge that the site is
completely customized for them. Personalizaton scenarios are now easier
to build than ever before and require significantly less code and effort to
implement.
Features of ASP.NET ..
Localization.
ASP.NET ASP
Event Driven Model with event
handlers running on the server. No
- Page PreRender -> (Save View State) -> Page Render ->
Page_Init
Page_UnLoad
ASP.NET Page
Events
ASP.NET Page Events
PreInit
Init
InitComplete
PreLoad
Load
LoadComplete
PreRender
PreRenderComplete
Unload
ASP.NET Page
Directives
ASP.NET Page Directives
A directive controls how the page is compiled.
The directives in ASP.NET are :-
Page
Defines the page specific attributes used by ASP.NET page
parser & compiler.
Import
AutoPostBack Property
Controls whether user interaction with the control should invoke a round
trip requests to the server.
ASP.NET Page Postback Model..
EnableViewState
Determines whether the control should retain its state for the
duration of postback, so you have to set the property to “true”
Cross-Page Postbacks
If you want to post the values on one page to another page for
processing you have to configure “Postback Url” properties.
Page Navigation by Cross Page
Posting
A page can be posted to another page where the
posted values can be retrieved.
When the previous page is accessed, view-state is
re-populated to an instance of posting page.
ASP.NET Page
Compilation
ASP.NET Engine
.ASPX File
Generate
a Page Class
ASP.NET
ViewState
ASP.NET View State
ASP.NET can detect when a form is requested for the first time
versus when the form is posted (sent to the server), which allows
you to program accordingly. It is stored in HTML hidden fields.
Tracing &
Debugging
Tracing & Debugging
Tracing
To trace the process of an application. It is useful in error
detection.
Tracing can be enabled at the page level by adding trace
attribute to the Page.
<%@ Page Trace = “True” %>
You can add own trace message using Trace.Warn Methods
Trace.Warn(“Page Loaded”)
Debugging
To view the error message during page execution you have enable
for the page or entire application.
For Page Level - <% Page Debug=”True” %>
For Application Level in web.config file - <compilation debug = “true”>
Special Folders
APP Data
APP Code
Web Configuration
Code Access
Themes and Skins
Resource Folders
Local Resource File
Global Resource Files
Set Resource Data
App_WebReferences
Session Ends
Exercise
Relax