473,387 Members | 1,603 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

FindControl requires that controls have unique IDs

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

Nov 19 '05 #1
1 2831
SouthSpawn:

Can you share a small sample of code that reproduces this error?
Nothing in the description is jumping out as a problem.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Thu, 21 Apr 2005 09:55:44 -0400, "SouthSpawn" <so********@aol.com>
wrote:
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


Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: James G. Beldock | last post by:
I have seen the following behavior: when issuing a Page.FindControl() for a control which exists in an item template (from within an ItemDataBound() event, for example), I get nulls back...
3
by: Andrea Williams | last post by:
Ok, thanks to a kind person yesterday, I've started using the FindControl() method. Although I able to get this to work for Web Controls, I'm unable to find the HTML Controls? Am I missing...
2
by: Michael | last post by:
Need some help trying to read values from web controls - specifically *finding* the controls (like a drop down list) - that are added dynamically added within an asp:panel control. The page...
2
by: sck10 | last post by:
Hello, I am looping through each control using the following to find a particular control (strFindCtl = "tbxCompetitor" & strForLoop1 & "Product"). For ctrRow = 1 To 3 strForLoop1 = "0" &...
2
by: sri_san | last post by:
Hello, I have a bunch of controls with unique IDs as below: <INPUT VALUE='1' id=chkbox1-1 NAME=CheckBox1 TYPE=Radio runat=server> these HTML controls r wrapped in a plain table. When I do a...
5
by: sck10 | last post by:
Hello, I am using the code below to set the values of a DetailsView template field using FindControl. My question is how would you find a control if its a Boundfield control? For example,...
0
by: David Rees | last post by:
Before I was using LoadControl and a slew of User Controls to achive the same effect, but I realised a custom TemplatedControl was the better way of doing it. Anyway, this is the templated...
2
by: ThunderMusic | last post by:
Hi, I have a custom WebControl. I fire an event and send, as the EventArg, another WebControl that contains sub controls (ParseChildren(true))... It can contain anything, but I want to find one...
4
by: Rob Meade | last post by:
Hi all, I was wondering if you can help. I have the need to find a control on the page for which I don't know all of the ID, this is because it is made up from several id's forming one new id. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.