try
{
}
catch (Exception ee)
{
}
finally
{
ScriptManager.RegisterClientScriptBlock(Page, this.GetType(), "CallJSFunction", "YourFunctionName()", true);
}
you can write your js function which you can set in a string variable like this
try
{
}
catch (Exception ee)
{
}
finally
{
string jsFunction="alert('Process comlete');"
ScriptManager.RegisterClientScriptBlock(Page, this.GetType(), "CallJSFunction", "jsFunction", true);
}