Please add the following code to the event or function that causes the postback.
ScriptManager.RegisterStartupScript(Me.Page, Me.GetType, "CallScriptAfterPostback", "<script language='javascript'>MyJavascriptFunctionHere();</script>", False)
Added: you can retain everything except for MyJavascriptFunctionHere(); because that represent the javascript function that you want to call after postback. so let say:
protected void MyButton_Click(object sender, EventArgs e)
{
ScriptManager.RegisterStartupScript(this.Page, this.GetType, "CallScriptAfterPostback", "<script language='javascript'>MyJavascriptFunctionHere();</script>", False)
}
>> please use this: language='javascript' instead of language="'javascript'". I don't know why single quote has a prefix of "'