Can anybody tell me how can i access ScriptManager in my Composite Control?
I do have reference of system.web in my project but when i type System.Web.UI.
i am not able to get reference of ScriptManager afeter UI.
The reason for doing this is that i have a composite control which is registering some client script on OnPreRender event.
this control works fine when placed on web page without update panel but gives error "object expected" when placed in an update panel
i am registering client script as follows
this.Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "test" + this.ClientID, script.ToString());
when i search on google i found that i should register it like this
ScriptManager.RegisterStartupScript(this, typeof(Page), UniqueID, "alert('Data successfully insert into database');", true);
but i am not getting the reference of
can anybody help me to get rid of this problem.
View Complete Post