Re: Dynamic button first click doesn't raise event
- From: "William" <william@xxxxxxxxxxx>
- Date: Fri, 18 Jan 2008 17:06:35 +0200
Hey
Found the problem.
Needed to assign a value to the btnSubmit.ID.
Thanks
"JIGNESH" <JIGNESH@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D98F4CBA-1246-4C10-B165-4B747864235B@xxxxxxxxxxxxxxxx
Did you created the button click event handler also at runtime?
eg: Button.Click += .......
Regards
JIGNESH
"William" wrote:
Hi
I've created a page with only 'n blank table control on it. When
clicking a
button, the table populates with various textboxes and dropdown lists to
make up a complete form. In the last row of the table, a submit button
is
added.
Almost everything works fine. The form display, the user fills out the
form
and then click Submit. However, the first time the submit button is
clicked, the Click event isn't raised. Just a simple postback is done.
When clicking the submit button again, the code is executed and the
captured
results are saved.
I need to get the system to execute the code on the first click to avoid
possible confusion among users.
.
- References:
- Dynamic button first click doesn't raise event
- From: William
- Dynamic button first click doesn't raise event
- Prev by Date: Images\ViewOnly
- Next by Date: Re: Querystring validation
- Previous by thread: Dynamic button first click doesn't raise event
- Next by thread: Gridview (DetailView, et al) template field disable
- Index(es):