When I view my index.aspx page any time after the first time, I recieve the
following error:
[HttpException (0x80004005): Multiple controls with the same ID
'TitleBanner:_ctl0' were found. Trace requires that controls have unique
IDs.]
System.Web.TraceContext.AddNewControl(String id, String parentId, String
type, Int32 viewStateSize) +313
System.Web.UI.Control.BuildProfileTree(String parentId, Boolean
calcViewState) +201
System.Web.UI.Control.BuildProfileTree(String parentId, Boolean
calcViewState) +263
System.Web.UI.Control.BuildProfileTree(String parentId, Boolean
calcViewState) +263
System.Web.UI.Control.BuildProfileTree(String parentId, Boolean
calcViewState) +263
System.Web.UI.Page.ProcessRequestMain() +1633
TitleBanner is a user control on my page. Because I do not recieve this
error the very first time I view the page after compiling it, ASP.NET is
obviously remembering the control after I view the page the first time. I
find this error strange because _ctl0 is an automatically generated name, so
how can there be two controls with that name? I also find it strange that
the error only seems to occur on my index.aspx page, even though the control
is used in exactly the same way (same parameters and properties) on another
page in the same directory, and it does not give me an error there even when
I view it multiple times. Why might this be happening, and what might I be
able to do to fix it? Thanks.
--
Nathan Sokalski nj********@hotmail.com http://www.nathansokalski.com/ 8 1512
Nathan,
First question,
Are you dynamicly building controls?
Cor
Hi,
If you are adding the control to the webpage via code do not add
it again when the page is posting back.
If not me.postback then
' add the control here
end if
Ken
----------------------------
"Nathan Sokalski" wrote: When I view my index.aspx page any time after the first time, I recieve the following error:
[HttpException (0x80004005): Multiple controls with the same ID 'TitleBanner:_ctl0' were found. Trace requires that controls have unique IDs.] System.Web.TraceContext.AddNewControl(String id, String parentId, String type, Int32 viewStateSize) +313 System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +201 System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +263 System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +263 System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +263 System.Web.UI.Page.ProcessRequestMain() +1633
TitleBanner is a user control on my page. Because I do not recieve this error the very first time I view the page after compiling it, ASP.NET is obviously remembering the control after I view the page the first time. I find this error strange because _ctl0 is an automatically generated name, so how can there be two controls with that name? I also find it strange that the error only seems to occur on my index.aspx page, even though the control is used in exactly the same way (same parameters and properties) on another page in the same directory, and it does not give me an error there even when I view it multiple times. Why might this be happening, and what might I be able to do to fix it? Thanks. -- Nathan Sokalski nj********@hotmail.com http://www.nathansokalski.com/
Yes, I am. The place that it looks like the error occurs (which is pretty
early in my code based on what I can tell, since the control it says it
finds multiple times is pretty early in the Control Tree it displays). A
note that I want to make about this control, however, is that is a control
that I generate in the Application_Start procedure and store in a collection
in the global.asax.vb file, so it is really only generated once (unless the
cache dependency removes it from cache, in which case it is generated
again). Here is my control tree, which you can see is pretty small since it
doesn't get very far:
Control Tree
Control Id Type Render Size Bytes (including children) Viewstate Size
Bytes (excluding children)
__PAGE ASP.index_aspx 0 0
_ctl0 System.Web.UI.LiteralControl 0 0
TitleBar System.Web.UI.HtmlControls.HtmlGenericControl 0 0
_ctl1 System.Web.UI.LiteralControl 0 0
_ctl2 System.Web.UI.ResourceBasedLiteralControl 0 0
Form1 System.Web.UI.HtmlControls.HtmlForm 0 0
_ctl3 System.Web.UI.LiteralControl 0 0
TitleBanner ASP.Banner_ascx 0 0
TitleBanner:lblTitle System.Web.UI.WebControls.Label 0 0
TitleBanner:_ctl0 System.Web.UI.LiteralControl 0 0
My other control, which the application never even gets to which I use for
navigation on all my pages, actually does generate the controls every time.
If you need any more info, I will be happy to give you anything I can.
Thanks.
--
Nathan Sokalski nj********@hotmail.com http://www.nathansokalski.com/
"Cor Ligthert" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl... Nathan,
First question, Are you dynamicly building controls?
Cor
I do not add the user control via code, the user control is always there.
The basic layout of the control that it looks like the error is occurring in
is as follows:
LABEL CONTROL
imagecontrol imagecontrol imagecontrol
The basic purpose of the user control is to display the title and navigation
bar. The imagecontrols, which are the navigation, are generated when the
application is started in the Application_Start procedure, and are then
stored in a collection in the global.asax.vb file. The only time they would
be generated a second time would be if they were removed from the
application cache (I created cache dependencies for this). I also want to
point out that even though my diagram above says imagecontrol 3 times, the
page in error only places one there (other pages would place more, but this
page only has one). My control tree (or at least the part shown in the
error) is as follows:
Control Tree
Control Id Type Render Size Bytes (including children) Viewstate Size
Bytes (excluding children)
__PAGE ASP.index_aspx 0 0
_ctl0 System.Web.UI.LiteralControl 0 0
TitleBar System.Web.UI.HtmlControls.HtmlGenericControl 0 0
_ctl1 System.Web.UI.LiteralControl 0 0
_ctl2 System.Web.UI.ResourceBasedLiteralControl 0 0
Form1 System.Web.UI.HtmlControls.HtmlForm 0 0
_ctl3 System.Web.UI.LiteralControl 0 0
TitleBanner ASP.Banner_ascx 0 0
TitleBanner:lblTitle System.Web.UI.WebControls.Label 0 0
TitleBanner:_ctl0 System.Web.UI.LiteralControl 0 0
I am having trouble figuring out what the LiteralControl that it stops at
is, because the user control TitleBanner does not create or use any
LiteralControls. All I can think of is that somehow ASP.NET is labeling the
<BR> tag as a LiteralControl, even though the tag is just there. If there is
any more information that might be useful in figuring out the problem, let
me know and I will be happy to give it to you. Thanks.
--
Nathan Sokalski nj********@hotmail.com http://www.nathansokalski.com/
"Ken Tucker [MVP]" <Ke**********@discussions.microsoft.com> wrote in message
news:41**********************************@microsof t.com... Hi,
If you are adding the control to the webpage via code do not add it again when the page is posting back.
If not me.postback then ' add the control here end if
Ken ----------------------------
"Nathan Sokalski" wrote:
When I view my index.aspx page any time after the first time, I recieve the following error:
[HttpException (0x80004005): Multiple controls with the same ID 'TitleBanner:_ctl0' were found. Trace requires that controls have unique IDs.] System.Web.TraceContext.AddNewControl(String id, String parentId, String type, Int32 viewStateSize) +313 System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +201 System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +263 System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +263 System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +263 System.Web.UI.Page.ProcessRequestMain() +1633
TitleBanner is a user control on my page. Because I do not recieve this error the very first time I view the page after compiling it, ASP.NET is obviously remembering the control after I view the page the first time. I find this error strange because _ctl0 is an automatically generated name, so how can there be two controls with that name? I also find it strange that the error only seems to occur on my index.aspx page, even though the control is used in exactly the same way (same parameters and properties) on another page in the same directory, and it does not give me an error there even when I view it multiple times. Why might this be happening, and what might I be able to do to fix it? Thanks. -- Nathan Sokalski nj********@hotmail.com http://www.nathansokalski.com/
Yes, I am. The place that it looks like the error occurs (which is pretty
early in my code based on what I can tell, since the control it says it
finds multiple times is pretty early in the Control Tree it displays). A
note that I want to make about this control, however, is that is a control
that I generate in the Application_Start procedure and store in a collection
in the global.asax.vb file, so it is really only generated once (unless the
cache dependency removes it from cache, in which case it is generated
again). Here is my control tree, which you can see is pretty small since it
doesn't get very far:
Control Tree
Control Id Type Render Size Bytes (including children) Viewstate Size
Bytes (excluding children)
__PAGE ASP.index_aspx 0 0
_ctl0 System.Web.UI.LiteralControl 0 0
TitleBar System.Web.UI.HtmlControls.HtmlGenericControl 0 0
_ctl1 System.Web.UI.LiteralControl 0 0
_ctl2 System.Web.UI.ResourceBasedLiteralControl 0 0
Form1 System.Web.UI.HtmlControls.HtmlForm 0 0
_ctl3 System.Web.UI.LiteralControl 0 0
TitleBanner ASP.Banner_ascx 0 0
TitleBanner:lblTitle System.Web.UI.WebControls.Label 0 0
TitleBanner:_ctl0 System.Web.UI.LiteralControl 0 0
My other control, which the application never even gets to which I use for
navigation on all my pages, actually does generate the controls every time.
If you need any more info, I will be happy to give you anything I can.
Thanks.
--
Nathan Sokalski nj********@hotmail.com http://www.nathansokalski.com/
"Cor Ligthert" <no************@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl... Nathan,
First question, Are you dynamicly building controls?
Cor
I do not add the user control via code, the user control is always there.
The basic layout of the control that it looks like the error is occurring in
is as follows:
LABEL CONTROL
imagecontrol imagecontrol imagecontrol
The basic purpose of the user control is to display the title and navigation
bar. The imagecontrols, which are the navigation, are generated when the
application is started in the Application_Start procedure, and are then
stored in a collection in the global.asax.vb file. The only time they would
be generated a second time would be if they were removed from the
application cache (I created cache dependencies for this). I also want to
point out that even though my diagram above says imagecontrol 3 times, the
page in error only places one there (other pages would place more, but this
page only has one). My control tree (or at least the part shown in the
error) is as follows:
Control Tree
Control Id Type Render Size Bytes (including children) Viewstate Size
Bytes (excluding children)
__PAGE ASP.index_aspx 0 0
_ctl0 System.Web.UI.LiteralControl 0 0
TitleBar System.Web.UI.HtmlControls.HtmlGenericControl 0 0
_ctl1 System.Web.UI.LiteralControl 0 0
_ctl2 System.Web.UI.ResourceBasedLiteralControl 0 0
Form1 System.Web.UI.HtmlControls.HtmlForm 0 0
_ctl3 System.Web.UI.LiteralControl 0 0
TitleBanner ASP.Banner_ascx 0 0
TitleBanner:lblTitle System.Web.UI.WebControls.Label 0 0
TitleBanner:_ctl0 System.Web.UI.LiteralControl 0 0
I am having trouble figuring out what the LiteralControl that it stops at
is, because the user control TitleBanner does not create or use any
LiteralControls. All I can think of is that somehow ASP.NET is labeling the
<BR> tag as a LiteralControl, even though the tag is just there. If there is
any more information that might be useful in figuring out the problem, let
me know and I will be happy to give it to you. Thanks.
--
Nathan Sokalski nj********@hotmail.com http://www.nathansokalski.com/
"Ken Tucker [MVP]" <Ke**********@discussions.microsoft.com> wrote in message
news:41**********************************@microsof t.com... Hi,
If you are adding the control to the webpage via code do not add it again when the page is posting back.
If not me.postback then ' add the control here end if
Ken ----------------------------
"Nathan Sokalski" wrote:
When I view my index.aspx page any time after the first time, I recieve the following error:
[HttpException (0x80004005): Multiple controls with the same ID 'TitleBanner:_ctl0' were found. Trace requires that controls have unique IDs.] System.Web.TraceContext.AddNewControl(String id, String parentId, String type, Int32 viewStateSize) +313 System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +201 System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +263 System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +263 System.Web.UI.Control.BuildProfileTree(String parentId, Boolean calcViewState) +263 System.Web.UI.Page.ProcessRequestMain() +1633
TitleBanner is a user control on my page. Because I do not recieve this error the very first time I view the page after compiling it, ASP.NET is obviously remembering the control after I view the page the first time. I find this error strange because _ctl0 is an automatically generated name, so how can there be two controls with that name? I also find it strange that the error only seems to occur on my index.aspx page, even though the control is used in exactly the same way (same parameters and properties) on another page in the same directory, and it does not give me an error there even when I view it multiple times. Why might this be happening, and what might I be able to do to fix it? Thanks. -- Nathan Sokalski nj********@hotmail.com http://www.nathansokalski.com/
Nathan,
I think that the way you are doing it, is so special, that I can not give
you any help in this.
Sorry
Cor
Nathan,
I think that the way you are doing it, is so special, that I can not give
you any help in this.
Sorry
Cor This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Eric E |
last post by:
Hi all,
I have a fairly complex form in Access 2000. In particular, it has two
subforms on separate tabs of a tab control. For the last two weeks,
I've encountered the dreaded :
"You can't...
|
by: Alex Nitulescu |
last post by:
Hi. I have created a web-based "file manager", for remote-administration of
a web-site. It works okay.
The "main" form in the "file manager" is BrowseFiles.aspx. I can edit the
text files (among...
|
by: Gary |
last post by:
I have an application that has been working just fine for a couple of years.
It queries a SQL database and returns some formatted data back to the client.
I have a new client, who has a larger...
|
by: Nathan Sokalski |
last post by:
When I view my index.aspx page any time after the first time, I recieve the
following error:
System.Web.TraceContext.AddNewControl(String id, String parentId, String
type, Int32 viewStateSize)...
|
by: buhajbej |
last post by:
Hi.
I'm preparing polish version of Herbalife.com. I want to make xhtml
compatible.
Under this link: http://www.kredytomat.pl/hbl/ is a test verison of this
page. In IE it looks ok. In FF left...
| |
by: H |
last post by:
I'm having a strange problem with viewing a site. I downloaded it and am
seeing that although I can view text on the page in my browser, I don't
see any of it in Dreamweaver. Has anyone run into...
|
by: comp.lang.php |
last post by:
Whenever I would view any of my PHP scripts on any of a number of
servers that I run, the Apache error logs on each of them would have
this rather strange error:
File does not
exist:...
|
by: WhiteWizard |
last post by:
Have we got a STRANGE one going here.
We converted from 1.1 to 2.0 about 2 weeks ago and this has been a problem
since then...but only on SOME machines in our development group. The
application...
|
by: Joey |
last post by:
I have several asp.net 2.0 apps written in VS2005 in C#. For each one,
I like to create and track page view events, increment counters, etc.
I do this in a block on each page, like this...
...
|
by: maria |
last post by:
I only use C++ with Visual Studio 6.0 for string manipulations in
thousands of HTML pages on my website. Many times, the output files of
many of my C++ programs contain a spanish question mark (¿)...
|
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,...
| |
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,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |