What can cause a postback to not be routed to the handler

160 Views Asked by At

I have a user control that worked fine in a plain ASP.NET web application, but now that I've converted it to a Sitefinity Module, it is not functioning. Specifically, when I click an asp:LinkButton that has an OnClick handler, the handler is never being called. A postback DOES occur, though - if I set a breakpoint in Page_Load, it get's hit. But the handler itself is never called.

Has anyone else ever run into this? Any ideas on what might be interfering with the event stack?

1

There are 1 best solutions below

2
SelAromDotNet On

in the Page settings, make sure that "Enable Viewstate" is checked. by default, Sitefinity disables Viewstate in pages and that will usually cause postbacks to fail.

Hope this is helpful!