Control 1 is just a list and does not require any user input
Control 2 is a form and has an asp:Button on it with a onclick event
Control 3 is the same as Control 2 a form with an asp:Button on it with a onclick event
The problem
When all 3 Controls are added to the Dashboard only the click event for Control 3 works. When I click the button on Control 2 the page just does nothing. I've run locally with debug and nothing is getting passed back to the server at all and non of my break points are hit. I also dont get a javascript error in the browser ff3(FireBug) and ie8.
When I remove Control 3 from the dashboard Control 2's click action works and all break points are hit.
Any one have any ideas why having two click events in different controls on the same dashboard would do this?
Ps. the buttons all have different ids and event names.
I had a similar problem and a control on one of my tabs was not validating when a control on another tab was trying to post back but as it was another tab I couldn't see that. Simple answer was to use validation groups.
Dashboard Multiple Controls onClick Issue
Hi
I've added 3 controls to the Umbraco dashboard using this code:
Control 1 is just a list and does not require any user input
Control 2 is a form and has an asp:Button on it with a onclick event
Control 3 is the same as Control 2 a form with an asp:Button on it with a onclick event
The problem
When all 3 Controls are added to the Dashboard only the click event for Control 3 works. When I click the button on Control 2 the page just does nothing. I've run locally with debug and nothing is getting passed back to the server at all and non of my break points are hit. I also dont get a javascript error in the browser ff3(FireBug) and ie8.
When I remove Control 3 from the dashboard Control 2's click action works and all break points are hit.
Any one have any ideas why having two click events in different controls on the same dashboard would do this?
Ps. the buttons all have different ids and event names.
Jc
Do you have validation on any of your controls?
I had a similar problem and a control on one of my tabs was not validating when a control on another tab was trying to post back but as it was another tab I couldn't see that. Simple answer was to use validation groups.
Spot on Simon. Cheers.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.