Awp 2
Awp 2
A single master page defines the look and feel and standard behavior.
View state:
client-side state management mechanism
store the page value at the time of post back of your page.
Advantage of ViewState:
▪ easy to implement
▪ no server resources are required
▪ Enhanced security features
Disadvantage of ViewState:
Inline style:
It is directly placed inside an HTML tag.
<p style=”color:red;”>
it allows you a way to apply the same style rules to many pages
Cookies
A small piece of data stored on a client browser
When a user requests for a web page, web server sends not just a page, but also a cookie
containing the date and time.
When the user requests for the web page again, browser looks on the hard drive for the
cookie associated with the web page.
▪ Persist Cookie - stay on the user’s browser for a very long time.
▪ Non-Persist Cookie – This cookie expires after a certain time
Advantage of cookie:
Disadvantages of Cookie
▪ No security.
▪ Each request will have cookie information with page.
THEME
Debugging allows the developers to see how the code works in a step-by-step manner.
Breakpoints: a point in the program where the code will stop executing.
To set a breakpoint right click on the code and choose insert break point
Exception handling:
▪ try
▪ catch
▪ finally
▪ throw
Difference between list box and drop-down list
Only one item can be selected More than one item can be selected
WEB FORMS:
▪ main purpose of Web Forms is to overcome the limitations of ASP
▪ compatible to any browser
▪ It is flexible and allows us to create and add custom controls.
▪ provides various controls like: server controls and HTML controls for the Web
Forms.
▪ WEB FORM IS MADE UP OF: ASPX file and the code behind the form
Calendar control
PAGE CLASS:
When asp.net page is requested and renders markup to a browser, it creates an instance
if a class that represents our page.
PAGE PROPERTIES:
• IsPostBack
• EnableViewState
• Application
• Session
• Request
• Response
ADO.NET
.NET Framework
Architecture of ADO.NET:
▪ asConnection
▪ Command
▪ DataSet objects
Features of ADO.NET:
▪ Interoperability
▪ Maintainability
▪ Programmability
▪ Performance
▪ Scalability
DataReader:
GRID VIEW:
GridView helps to perform key activities like Insert, Delete, Sorting, and
Paging.