Revision: 26964
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 17, 2010 16:25 by blackf0rk
Initial Code
private void FirePostBack() { StringBuilder sbScript = new StringBuilder(); 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()); }
Initial URL
Initial Description
This code will execute a postback.
Initial Title
Cause a Postback in .NET
Initial Tags
Net
Initial Language
C#