/ Published in: C#
This code will execute a postback.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
private void FirePostBack() { sbScript.Append("<script language='JavaScript' type='text/javascript'>\n"); sbScript.Append("<!--\n"); sbScript.Append(ClientScript.GetPostBackEventReference(this, "PBArg") + ";\n"); sbScript.Append("// -->\n"); sbScript.Append("</script>\n"); ClientScript.RegisterStartupScript(GetType(), "AutoPostBackScript", sbScript.ToString()); }