B
Ben Fidge
I've got a problem where some buttons placed on a user
control are only firing their OnClick events when the
user clicks on them for the second time.
I've got the situation where some common functionality
(Insert/Edit/Save/Cancel) is wrapped up in a user
control. This control is embedded on several other user
controls.
I don't know if this is relevant or not but the latter
user controls (hosting the Edit/Save etc control)
mentioned above are loaded dynamically at runtime into a
PlaceHolder using Page.LoadControl.
So running the project - The first time the user clicks
on one of the buttons nothing happens, the second time,
and every time thereafter, the OnClick event gets fired
as it should.
I've compared the source HTML in the browser for both
scenarios, and there is no difference between them
Any ideas?
Kind regards
Ben
control are only firing their OnClick events when the
user clicks on them for the second time.
I've got the situation where some common functionality
(Insert/Edit/Save/Cancel) is wrapped up in a user
control. This control is embedded on several other user
controls.
I don't know if this is relevant or not but the latter
user controls (hosting the Edit/Save etc control)
mentioned above are loaded dynamically at runtime into a
PlaceHolder using Page.LoadControl.
So running the project - The first time the user clicks
on one of the buttons nothing happens, the second time,
and every time thereafter, the OnClick event gets fired
as it should.
I've compared the source HTML in the browser for both
scenarios, and there is no difference between them
Any ideas?
Kind regards
Ben