Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Caching / June 2005

Tip: Looking for answers? Try searching our database.

Error: FindControl requires that controls have unique IDs.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
SouthSpawn - 21 Apr 2005 14:56 GMT
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
Scott M. - 22 Apr 2005 03:18 GMT
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.

>I have a datagrid with a checkbox column, and dropdown list that does a
> autopostback.
[quoted text clipped - 19 lines]
>
> Mark
sh1rts - 28 Jun 2005 14:21 GMT
> 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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.