ASP .NET Button event handlers do not fire on the first click, but on the second click after a PostBack

后端 未结 8 2055
Happy的楠姐
Happy的楠姐 2020-12-02 17:02

Background: I am customizing an existing ASP .NET / C# application. It has it\'s own little \"framework\" and conventions for developers to follow when exte

8条回答
  •  日久生厌
    2020-12-02 17:26

    For me it was the UpdatePanel , my Button and my TextBox were both inside an UpdatePanel , so when I post-back , it caused some weird behavior . It took it outside of the UpdatePanel and that fixed it .

提交回复
热议问题