User control causes postback but events do not fire

P

Phil Johnson

Using 3.5, we have a user control (let’s call it Container.ascx) which has an
asp:UpdatePanel with UpdateMode=â€Conditional†and EnableViewState=â€falseâ€. It
contains a table of asp:LinkButtons. In the markup, the Click event is
declared for each LinkButton. This user control is loaded dynamically from
its calling user control (Zone.ascx). After the LoadControl, it gets its ID
set.

The problem is that none of the LinkButton events for Container.ascx get
fired although postback occurs and the EVENTTARGET property on the Request
object shows the object which caused the postback correctly. The event wireup
occurs via AutoEventWireup being set to true but we’ve also tried setting the
Click event in the code behind with the same results.

Any help on this is appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,189
Members
46,735
Latest member
HikmatRamazanov

Latest Threads

Top