Discussion:
AssociatedControlID in a custom templated control
Bill Bassler
2008-07-11 16:37:30 UTC
Permalink
Can anyone point me to information on how to suppoer AssociatedControlID
for Label controls that might be dragged into templated panel-like server
control?

I have a control that I created that supports expanded and contracted
panels so that you can drag any controls into the panels at design-time.
However, when I attempt to set the AssociatedControlID property to
associate a Label that is also inside of the panel I get a non-sensical
design time duplcate control ID FindControl error on the Label control in
question for the first control that exists in the template. This would
seem to some kind of naming container issue where maybe the Label control
is attempting to find the control defined in the AssociatedControlID
property but it cannot.

Is there something maybe I need to implement in TemplatedControlDesigner
code to wire this stuff up?

===================================
This list is hosted by DevelopMentorĀ® http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
Andrew Dunn
2008-07-14 00:28:00 UTC
Permalink
Andrew Dunn
2008-07-14 01:02:31 UTC
Permalink
Dean Cleaver
2008-07-17 01:36:13 UTC
Permalink
Efran Cobisi, cobisi.com
2008-07-17 05:00:53 UTC
Permalink
Hi Dino,

I've experienced a similar issue when an assembly I was working on had a
deep recursion inside one of its methods; it seemed that an
OutOfMemoryException had been thrown somewhere but there was not enough
memory to propagate the exception back to the caller. This kind of
exception is indeed one of the more difficult to debug because of the
inability of the CLR to report it just before it's too late.

HTH

--
Efran Cobisi
http://www.cobisi.com

Dean Cleaver wrote:
> Hi,
>
> We've just had a problem occur that I have no idea how to fix or even find. This is the entirety of the event log error:
>
> EventType clr20r3, P1 w3wp.exe, P2 6.0.3790.3959, P3 45d6968e, P4 extramile.ichange.web, P5 3.3.8.3, P6 487e902a, P7 1044, P8 22, P9 exception, P10 NIL.
>
> extramile.ichange.web is our web assembly, and between that and the code below in other assemblies, there's 750,000 lines of C# and not a hint of where to look. It seems to function for a bit (I've seen login pages come up) but then something goes wrong, it doesn't call any of the Application_Error code, and just shuts down our app pool.
>
> Any suggestions would be most appreciated.
>
> Dino
>
> ===================================
> This list is hosted by DevelopMentorĀ® http://www.develop.com
>
> View archives and manage your subscription(s) at http://discuss.develop.com
>
>
>

===================================
This list is hosted by DevelopMentorĀ® http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
Dean Cleaver
2008-07-17 05:10:07 UTC
Permalink
Andrew Dunn
2008-07-17 05:43:57 UTC
Permalink
Andrew Dunn
2008-07-17 05:45:24 UTC
Permalink
Loading...