You have to use RegisterClientScriptBlock to write a javascript funciton to
browser... to associate it... just use say onclick='function_name();' add
that to ur control...
Here's some code from my earlier post:
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
// Form the script that is to be registered at client side.
String scriptString = "<script language=JavaScript> function CancelMe()
{";
scriptString += "window.history.back(); }</script>";
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.