473,395 Members | 1,379 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,395 software developers and data experts.

Another Multiple Control error



I am attempting to create a dynamic multi-level tab strip from a
database using linkbuttons. I can get the controls added to the page on
the first page load, but on post back I get the mutiple control error.
I have read other postings, but none seem to give the right answer for
my case.

Do I need to cache the items on the first load so that I am not hitting
the database again or is there a way to only load this information once?

Thank you for your help.

Mike

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #1
1 1026
"Mike Smith" <ms****@fiberplex.com> wrote in message
news:ed**************@TK2MSFTNGP09.phx.gbl...


I am attempting to create a dynamic multi-level tab strip from a
database using linkbuttons. I can get the controls added to the page on
the first page load, but on post back I get the mutiple control error.
I have read other postings, but none seem to give the right answer for
my case.

Do I need to cache the items on the first load so that I am not hitting
the database again or is there a way to only load this information once?


Mike, you haven't really given enough information about this problem. For
instance, what specific "multiple control error" are you receiving, and
exactly where are you getting it (please provide the stack trace).

I'm guessing that you may be receiving an error about multiple controls with
the same ID. If that's the case, you're probably getting it when you're
adding your LinkButtons. If so, you should ask why the link buttons are
already present in their parent's Controls collection. As a brute force
method, you could use Controls.Clear before adding any LinkButtons.

If you're creating a composite control, take a look at the following
pattern. If you follow this pattern and create the child controls (the link
buttons) in the CreateChildControls method, then you shouldn't have a
problem:

Developing a Composite Control
(http://msdn.microsoft.com/library/de...-us/cpguide/ht
ml/cpcondevelopingcompositecontrols.asp)
--
John Saunders
johnwsaundersiii at hotmail

Nov 18 '05 #2

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

Similar topics

6
by: mark | last post by:
I have an asp.net ecommerce web application on a remote web server. I'm using an Access database on the back end. I've notice a few strange things. When I mimic an multiple user environment by...
2
by: Tom Bray | last post by:
Ok I am baffled I can not figure out this problem. I am getting the following error: Portal Error - A DropDownList cannot have multiple items selected. Error information Name Value Message...
2
by: Bal Ghuman | last post by:
Hi Guys I've got an ASP.NET application that dynamically creates a navigation table from an XML file and then Loads a user control according to which link has been selected. The control...
3
by: Nathan Sokalski | last post by:
When I view any page in my application a second time, I recieve the following error: System.Web.TraceContext.AddNewControl(String id, String parentId, String type, Int32 viewStateSize) +313...
25
by: MuZZy | last post by:
Hi, I'm currently rewriting some functionality which was using multithredaing for retrieving datasets from database and updating a grid control. I found that the grids (Infragistics UltraGrid,...
9
by: davetelling | last post by:
I am not a programmer, I'm an engineer trying to make an interface to a product I'm designing. I have used C# to make a form that interrogates the unit via the serial port and receives the data. I...
12
by: Rob | last post by:
Let's say you open Form1 that contains TabControl1 There are several tabs on TabControl1 Now you open a new Form2 that contains a User Control How can you determine the Selected tab in Form1...
9
by: joe | last post by:
Hello, I have a website set up on our server that is especially for errors. When another website encounters an error, it will redirect to this site with error details in the querystring. The...
3
by: =?Utf-8?B?a3dvbmd0aw==?= | last post by:
error message found in server A "Multiple controls with the same ID 'batchEndorseworklist' were found. Trace requires that controls have unique IDs." but in server B is normal why? thank you
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.