Asp.net Script manager conflicting with button

Posted by DJPB on Stack Overflow See other posts from Stack Overflow or by DJPB
Published on 2010-06-18T12:13:06Z Indexed on 2010/06/18 13:53 UTC
Read the original article Hit count: 277

Filed under:
|

Hi there.

I'm working on an asp.net app and I have some controls that are created dinamically on the OnInit event. One of that controls is an asp button that has been working fine until now. When I add a ScriptManager to my page, that same button is unnable to postback. It's only working if a take the ScriptManager out.

has anything like this ever appened to somebody else? Am I invalidating the page somehow?

Tks

ps: this is my scrip manager tag:

    <asp:ScriptManager ID="ScriptManager1" runat="server" 
EnablePageMethods="true" EnableScriptGlobalization="true" 
EnableScriptLocalization="true"> 
</asp:ScriptManager>

//My Dynamic Button:
Button button1 = new Button
            {
                ID = "button1",
                Text = "Ok"
            };
            button1.Click += new EventHandler(Button1_Click);

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about scriptmanager