By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,984 Members | 2,615 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,984 IT Pros & Developers. It's quick & easy.

Multiple controls with the same ID...

P: n/a
Hello,

I am dynamically creating a System.Web.UI.WebControls.Table on my web
form, and within my table I put various radiobuttons, textboxes and
dropdownlists. When my table is created the first time, everything
works fine. However, when I post back and the table is re-created, I
am getting the above error. The first thing I do in my creation
routine is clear all existing rows from my table, so I'm not sure why
I'm getting this.

I increment my IDs by 1 each time (ID = "C1", "C2", etc.) and I'm sure
I'm not re-using IDs that have already been used.

Any help would be greatly appreciated.

Thanks,

Steve
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
At what point are you creating these controls? Can you do it inside the
Page's OnInit?

"Steve Black" <St*********@EagleCCI.com> wrote in message
news:7d*************************@posting.google.co m...
Hello,

I am dynamically creating a System.Web.UI.WebControls.Table on my web
form, and within my table I put various radiobuttons, textboxes and
dropdownlists. When my table is created the first time, everything
works fine. However, when I post back and the table is re-created, I
am getting the above error. The first thing I do in my creation
routine is clear all existing rows from my table, so I'm not sure why
I'm getting this.

I increment my IDs by 1 each time (ID = "C1", "C2", etc.) and I'm sure
I'm not re-using IDs that have already been used.

Any help would be greatly appreciated.

Thanks,

Steve

Nov 18 '05 #2

P: n/a


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.