CommandEventArgs contain CommandName & CommandArgument Properties
Button by default behaves as Submit button, but if we provide CommandName then itbehaves as CommandButton
CommandButton raises CommandEvent . It will be useful when u want to pass event related info to event handler
Features Of webServer Contorls:-
Event ArgumentsAll Events in .Net framework passes 2 arguments.
1.Object that raised event
2.Object that contains event specific info.
If Event doesn't have event specific info then it passes System.EventArgs by default.
Otherwise it passes EventSpecific data such as ImageClickEventArgs which is derived from System.EventArgs
All the events raised at child level are bubbled up to parent level eg. Datagrid
1. Persisit Element Focus & Navigation Position
2. Avoid Page Flash
3. Doesn't save each postback in browser history
Intrinsic Objects to access Web Application Framework
1. HttpRequest à Page.Request
2. HttpResponse
3. HttpServerUtility
4. HttpApplicationState
5. HttpSessionState
Global.asax file has
Global class --> HttpApplication
Global.asax file is automatically created for WebApplication project
-Handle event not specific to web form but application.
U can have
Application
Session
Pre-request
In Cookie u can store upto 4k in old browsers while up to 8k in new ones.
Button by default behaves as Submit button, but if we provide CommandName then itbehaves as CommandButton
CommandButton raises CommandEvent . It will be useful when u want to pass event related info to event handler
Features Of webServer Contorls:-
- Intrinsic Events Eg. Button has intrinsic events of click and command
Event ArgumentsAll Events in .Net framework passes 2 arguments.
1.Object that raised event
2.Object that contains event specific info.
If Event doesn't have event specific info then it passes System.EventArgs by default.
Otherwise it passes EventSpecific data such as ImageClickEventArgs which is derived from System.EventArgs
- AutoPostback
- BubbledEvents
All the events raised at child level are bubbled up to parent level eg. Datagrid
- SmartNavigation:-
1. Persisit Element Focus & Navigation Position
2. Avoid Page Flash
3. Doesn't save each postback in browser history
Intrinsic Objects to access Web Application Framework
1. HttpRequest à Page.Request
2. HttpResponse
3. HttpServerUtility
4. HttpApplicationState
5. HttpSessionState
Global.asax file has
Global class --> HttpApplication
Global.asax file is automatically created for WebApplication project
-Handle event not specific to web form but application.
U can have
Application
Session
Pre-request
In Cookie u can store upto 4k in old browsers while up to 8k in new ones.