C
ccbalapatel
Hi,
We have recently converted our code to ASP.NET 2.0. We have an user
control that is embedded inside the page. The user control has a link
button and the event handler for the link button is written inside the
user control. When the link button is clicked, the page is posted back
and the page_load method of the user control also executes fine. But,
the event handler for the link button is not called. The same code
works fine on ASP.NET 1.1. After some research into this problem, I
have figured out that the link button's UniqueId is not matching with
the __EVENTTARGET parameter and hence the event handler is not
triggered.
This seems to be a bug in Microsoft ASP.NET framework. Does anyone
have any workarounds for this problem? Our code is kind of complicated
with multiple user controls on the same page and all these user
controls are derived from a base UserControl which contains properties
common to all the user controls on the page. Moving the event handler
to the page (from the control) might not work.
Thanks in advance.
We have recently converted our code to ASP.NET 2.0. We have an user
control that is embedded inside the page. The user control has a link
button and the event handler for the link button is written inside the
user control. When the link button is clicked, the page is posted back
and the page_load method of the user control also executes fine. But,
the event handler for the link button is not called. The same code
works fine on ASP.NET 1.1. After some research into this problem, I
have figured out that the link button's UniqueId is not matching with
the __EVENTTARGET parameter and hence the event handler is not
triggered.
This seems to be a bug in Microsoft ASP.NET framework. Does anyone
have any workarounds for this problem? Our code is kind of complicated
with multiple user controls on the same page and all these user
controls are derived from a base UserControl which contains properties
common to all the user controls on the page. Moving the event handler
to the page (from the control) might not work.
Thanks in advance.