Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

odd error

Status
Not open for further replies.

Zarcom

Programmer
May 7, 2002
1,275
CA
Have any of you guys seen this one before?

Multiple controls with the same ID 'Error' were found. FindControl requires that controls have unique IDs. That'l do donkey, that'l do
[bravo]
 
Well, it would depend on the context (as to how to solve it, that is), but the first thing that pops into my head is trying to use findControl on a datagrid that has many rows with the same id on the controls in the row...

whereas what you might have meant to do would have been to use e.item.findControl, and this would work given the proper context, which would be in an event handler with datagriditemeventargs as the 'e' argument -- even if the same statement would have returned the error on a:

datagrid.findControl("myControl")

on the same page.

More info or code could help alot, though. :)

paul
penny1.gif
penny1.gif
 
heh heh sorry. I know ambiguous posts are annoying.

I seem to have fixed it. The page I had was a regular web form. The error occured when I added a regular expression validator to the form.

I was messing around with it a bit so I am not sure what caused the error. However, deleting the validator has fixed things.

Thanks anyway guys. That'l do donkey, that'l do
[bravo]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top