code_junkie

Gridview within an UpdatePanel does not render in the DOM

Nov 13th, 2011
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. protected void Page_Load(object sender, EventArgs e)
  2. {
  3. string js = "$(document).ready(function(){$("#" + this.TextBox1.ClientID + "").text('hello world');});";
  4. HtmlGenericControl script = new HtmlGenericControl("script");
  5. script.Attributes.Add("type", "text/javascript");
  6. script.InnerHtml = js;
  7. Page.ClientScript.RegisterStartupScript(this.GetType(), "key", js, true);
  8. }
Add Comment
Please, Sign In to add comment