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

 
 
shiretu
Guest
Posts: n/a
 
      08-28-2005
Hi,

I'm trying to make a WebPropertyGrid control in ASP.NET. The control
renders itself as expected when the request is a "GET". When I make a
POST, I get the following error:

Multiple controls with the same ID 'TestString' were found. FindControl
requires that controls have unique IDs.

The architecture of my control is quite simple: using reflection I read
the properties from an object and generate appropriate web controls for
the user. For basic types like int,long,string,DateTime, etc I make an
TextBox. For complex types (those who are not in the list before) I
recursively make another WebPropertyGrid. My WebPropertyGrid structure
is initialized in CreateChildControls overridden method. After that I
call the base method. The CreateChildControls method works fine even
when I receive the error message into the browser. I suspect the
problem is in the rendering part....


ANY input is greatly appreciated

 
Reply With Quote
 
 
 
 
shiretu
Guest
Posts: n/a
 
      08-28-2005
Additional info on the subject....


I implement INamingContainer and the control used for rendering
DateTime type is an custom control who also implements
INamingContainer.
Every id in the HTML output is ok. There are no duplicates......

 
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
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57