Problems with Button Click Event
-
Hi guys, I'm currently experiencing a strange phenomenon. I have a user-control which allows the user to add data into a list on clicking on the OK Button. On the page where I use this control all works fine. However, now I need to have a second page where i need to enter the same data. So I wanted to re-use the control. The control is shown but when I click on the OK button no event is trigger, nothing happens? I have put a break point in the PageLoad of the user-control, but it doesn't event get there. It seems like that the event if any is missing at all, althought that the html (client-side) code is the same. Does anyone have a thought, or knows a reason why this could happen? Thx, Kurt
Learn from the mistakes of others, you may not live long enough to make them all yourself.
-
Hi guys, I'm currently experiencing a strange phenomenon. I have a user-control which allows the user to add data into a list on clicking on the OK Button. On the page where I use this control all works fine. However, now I need to have a second page where i need to enter the same data. So I wanted to re-use the control. The control is shown but when I click on the OK button no event is trigger, nothing happens? I have put a break point in the PageLoad of the user-control, but it doesn't event get there. It seems like that the event if any is missing at all, althought that the html (client-side) code is the same. Does anyone have a thought, or knows a reason why this could happen? Thx, Kurt
Learn from the mistakes of others, you may not live long enough to make them all yourself.
can you post the html code, code behind so i can suggest a solution?
Regards, Jamil
-
can you post the html code, code behind so i can suggest a solution?
Regards, Jamil
Thanks for the reaction, but the markup and the code behind is more then 2400 lines, The real problem is that is have inherited this project from some other company which failed to deliver on time. And now I have to 'Make it Work, ASAP'. Kurt
Learn from the mistakes of others, you may not live long enough to make them all yourself.
-
Thanks for the reaction, but the markup and the code behind is more then 2400 lines, The real problem is that is have inherited this project from some other company which failed to deliver on time. And now I have to 'Make it Work, ASAP'. Kurt
Learn from the mistakes of others, you may not live long enough to make them all yourself.
Are you loading the UserControl dynamically? if yes then you must re-load it on Init event of the page. let me know if you need any further help.
Regards, Jamil
-
Are you loading the UserControl dynamically? if yes then you must re-load it on Init event of the page. let me know if you need any further help.
Regards, Jamil
As far as i know the control isn't loaded dynamically.
<visitcontrol:SimpleVisitorControl ID="BadgeControl1" runat="server" />
Is used to get the control on the page. To show the Control it is call by a client side script.
badgeCallbackPanel.PerformCallback("");
Which is the same code as on the working page. On both pages the control is shown in a 'popup' but on one of the pages the OK button doesn't work.:mad:
Learn from the mistakes of others, you may not live long enough to make them all yourself.
-
Hi guys, I'm currently experiencing a strange phenomenon. I have a user-control which allows the user to add data into a list on clicking on the OK Button. On the page where I use this control all works fine. However, now I need to have a second page where i need to enter the same data. So I wanted to re-use the control. The control is shown but when I click on the OK button no event is trigger, nothing happens? I have put a break point in the PageLoad of the user-control, but it doesn't event get there. It seems like that the event if any is missing at all, althought that the html (client-side) code is the same. Does anyone have a thought, or knows a reason why this could happen? Thx, Kurt
Learn from the mistakes of others, you may not live long enough to make them all yourself.
See if there are any event delegates that you have missed. May be the code expects you to catch the callback on the container page.