If you are in a user control you have to reference the parent in RegisterStartupScript.
ScriptManager.RegisterStartupScript(this.Parent.Page, this.GetType(), "foo", "document.getElementById('" + this.ad_display.ClientID + "').innerHTML = ('" + DateTime.Now.ToString("yyyyMMddhhmmss") + "');", true);
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment