Tuesday, 14 December 2010

Event Procedure

There are 2 Types of Event Procedure in asp.net

1.Client Side Event Procedure

2.Server Side Event Procedure

Client Side Event Procedure :     Client Side Event Procedure are events that are handled  on the computer  that request the Web form. when the event is generated ,no information is send to the server side.
the client browser interprets the code and also preform the action

Client Side Event Procedure can only be used with HTML control, These procedure are useful for event that you want to happen immediately because they do not  require round trip to the web server

(Sending Information to the web server and waiting for a response)

Client Side Event Procedure Creating bb <Script>block in the web page

<Script Language="Javascript">

------------------------------------------------------------------------------------------
Server  side Event Procedure :

Server Side Event Procedure require information to be sent to the WEB SERVER for processing.
Server Side Event Procedure  consist of compiled code that reside on the  web sever. It handle events are generated  from both WEB and HTML server control. Server side event procedure have acess to server resources that are normally unavailable to client side event procedure

You Specify a Server Side Event Procedure  by using  runat="server" attribute in the script tag
<Script Language="C#" runat="Server">
<Script Language="VB" runat="Server">

No comments:

Post a Comment