Wednesday, June 18, 2014

force a page to postback using javascript in c#

protected override void Render(HtmlTextWriter output) {
                  output.Write("<a  id=\"" + this.UniqueID + "\" href=\"javascript:"
 + Page.GetPostBackEventReference(this) +"\">");
                  output.Write(" " + this.UniqueID + "</a>");

}

No comments:

Post a Comment