ScriptManager in a User Control inside a UserControl

Posted by user204588 on Stack Overflow See other posts from Stack Overflow or by user204588
Published on 2010-04-22T12:32:05Z Indexed on 2010/04/22 12:33 UTC
Read the original article Hit count: 454

Hello,

I have an asp.net user control, userControl1.ascx, and another user control, userControl2.ascx. userControl2 is inside userControl1. userControl1 is inside an UpdatePanel control. userControl2 has a button in it then I want to have do a normal post back when pushed. I want to use ScriptManager.RegisterPostBackControl(button). I have a ScriptManager on a master page. I don't know how to access the ScriptManager in userControl2 to register the button in the Page_Load event. So, How can I do this?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about scriptmanager