Hello,
I have created a dynamic webcontrol table with several rows. I also have a
ImageButton which
adds a new row to the table. After I have added a new row, and I click the
ImageButton again
I get: "Multiple controls with id '_ctl0' was found ..."
This is what I have done:
page_init:
Check if the table is persisted in a Session variable, if it is then
add it to a placeholder control.
page_load:
If not postback then get the data and render the table and save it
to a Session variable. The Session variable is used in the page_init method
to re-create the dynamic table
I always initialize the imagebutton and adds the eventhandler for the
ImageBtton_onClick.
The error message appers after the page_init method has executed.
I don´t set any ID on the controls in the cells or rows. I let ASP.NET
handle that for me.
Can someone give me any pointers or hints what might be wrong ?
Regards,
// Henke