Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Multiple controls with the same ID

Reply
Thread Tools

Multiple controls with the same ID

 
 
JojoStonehead
Guest
Posts: n/a
 
      11-14-2008
I'm getting the following error:
......................
Multiple controls with the same ID '_1' were found. FindControl requires
that controls have unique IDs.
.....................

I get this on a postback of a page with user control which has some custom
controls on it.

I'm working in ASP.NET 1.1 (VS 2003)
Any suggestions will be appriciated

G.


 
Reply With Quote
 
 
 
 
George Leithead
Guest
Posts: n/a
 
      11-14-2008
On Nov 14, 2:42*am, JojoStonehead
<(E-Mail Removed)> wrote:
> I'm getting the following error:
> .....................
> Multiple controls with the same ID '_1' were found. FindControl requires
> that controls have unique IDs.
> ....................
>
> I get this on a postback of a page with user control which has some custom
> controls on it.
>
> I'm working in ASP.NET 1.1 (VS 2003)
> Any suggestions will be appriciated
>
> G.


When creating the child-controls of the custom control, you need to
add them with unique IDs. So, simply assign an ID!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
User Controls with same name on same page rgparkins@hotmail.com ASP .Net 3 05-16-2006 12:55 PM
Known issues using 2 of the same Web User Controls on the same page mrobins@gmail.com ASP .Net 2 05-04-2006 01:15 PM
Need same viewstate for same page across multiple servers =?Utf-8?B?UHVuaXNoZXI=?= ASP .Net 1 03-23-2006 03:54 PM
write to the same file from multiple processes at the same time? gabor Python 19 05-31-2005 01:57 PM
Multiple controls with the same ID '_ctl24' were found. Trace requires that controls have unique IDs Jeff Tolman ASP .Net 0 11-04-2003 09:53 PM



Advertisments