|
First of all, determine who to send back to? !
Assuming that a button is triggered, you can write:
thePanel.Attributes["onmouseout"]=
this.Page.ClientScript.GetPostBackEventReference(theButton,"");
Suppose it is in a control, especially in ascx or aspx to define the triggered background code, then you can use the IPostbackEventHandler interface for your user control or page type (it actually only defines a method), and then write the code to let the customer Trigger it at the end:
thePanel.Attributes["onmouseout"]=
this.Page.ClientScript.GetPostBackEventReference(this,"");
IPostbackEventHandler is the key to post back a server program and script. GetPostBackEventReference and GetPostBackClientHyperlink are the functions you use to generate script code.
You can search for the usage of IPostbackEventHandler, GetPostBackEventReference, GetPostBackClientHyperlink. |
|