HighTechTalks DotNet Forums  

Error: FindControl requires that controls have unique IDs.

ASP.net Caching microsoft.public.dotnet.framework.aspnet.caching


Discuss Error: FindControl requires that controls have unique IDs. in the ASP.net Caching forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
SouthSpawn
 
Posts: n/a

Default Error: FindControl requires that controls have unique IDs. - 04-21-2005 , 09:56 AM






I have a datagrid with a checkbox column, and dropdown list that does a
autopostback.
Basically, the dropdown list is a filter for the datagrid. Here is my
workflow.

1. Load .aspx page.
2. Click on filter to show certain results in datagrid. (This will do a
autopostback)
3. Select item from datagrid using the checkbox column and click on my add
button.
4. Click back on filter to show all items in datagrid (This will do
another postback)
5. Select "all" items from the checkbox column.
6. Click on add button.

I get the following error.

FindControl requires that controls have unique IDs.

I read somewhere that MS released a hotfix for .Net Framework 1.1. I have
the latest service pack.

Mark


Reply With Quote
  #2  
Old   
Scott M.
 
Posts: n/a

Default Re: Error: FindControl requires that controls have unique IDs. - 04-21-2005 , 10:18 PM






The error means that when you use the FindControl method, you must supply
the ID of the control in the cell of the grid. You can't supply an index
number.


"SouthSpawn" <southspawn (AT) aol (DOT) com> wrote

Quote:
I have a datagrid with a checkbox column, and dropdown list that does a
autopostback.
Basically, the dropdown list is a filter for the datagrid. Here is my
workflow.

1. Load .aspx page.
2. Click on filter to show certain results in datagrid. (This will do a
autopostback)
3. Select item from datagrid using the checkbox column and click on my add
button.
4. Click back on filter to show all items in datagrid (This will do
another postback)
5. Select "all" items from the checkbox column.
6. Click on add button.

I get the following error.

FindControl requires that controls have unique IDs.

I read somewhere that MS released a hotfix for .Net Framework 1.1. I have
the latest service pack.

Mark




Reply With Quote
  #3  
Old   
sh1rts
 
Posts: n/a

Default Re: Error: FindControl requires that controls have unique IDs. - 06-28-2005 , 09:21 AM




Quote:
The error means that when you use the FindControl method
Did he even mention using FindControl ?


This is, supposedly, a bug in the .NET framework which Service Pack
supposedly fixes. Trouble is it doesn't, I am encountering the sam
problem when trying to re-create dynamically added usercontrols that
have cached.

http://support.microsoft.com/?kbid=83460

--
sh1rt




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.