Hey
Found the problem.
Needed to assign a value to the btnSubmit.ID.
Thanks
"JIGNESH" <(E-Mail Removed)> wrote in message
news

98F4CBA-1246-4C10-B165-(E-Mail Removed)...
> 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.
>>
>>
>>