Last post Jul 21, 2009 09:57 PM by Allen Chen – MSFT
Jul 16, 2009 04:11 AM|Jen_|LINK
I've got quite an interesting problem with some customer server controls.
I have four control types - RootControl, Level1Control, Level2Control, LeafControl. For simplicity they are just divs with a different background colour which display an alert when clicked.
RootControl contains a number of Level1Control objects, which each contain a number of Level2Control objects, which each contain a number of Level3Control objects.
So if noLev1 = 3, noLev2 = 2, noLeaf = 4 then we will have one RootControl object, containing 3 Level1Control objects, which each contain 2 Level2Control objects, which each contain 4 LeafControl objects.
No problems so far. But when there are a certain number of child controls then the grandchildren or great-grandchildren lose their CSS formatting!
The problem can't be with the number of direct children in the control, or the number of total descendants. But I just can't figure it out.
I'm totally flummoxed! Answers on a postcard greatly appreciated!!!
custom server control
Creating custom controls
Jul 20, 2009 04:31 AM|Allen Chen – MSFT|LINK
I could not find any clue from your description. If you could share a demo that can repro this issue I'd like to investigate further. You can upload the project to:
Jul 20, 2009 08:35 AM|Jen_|LINK
I've uploaded it to skydrive - my username is "Jen PT" and it's in my public folder in "AjaxLostCssTest". I've kept the directory structure which might make it a bit more difficult to download but at least you can see exactly what I'm doing then.
I've uploaded the test application I've been using as well (part of the same VS solution). If you run it and edit the query string on the web page you can see how the css formatting changes.
Thanks for looking at it for me
Jul 20, 2009 10:22 PM|Allen Chen – MSFT|LINK
Could you post the download link here for me to test your project?
Jul 21, 2009 07:09 AM|Jen_|LINK
Hi I think
http://cid-a71b2d8ab117c222.skydrive.live.com/home.aspx?sa=473059335&lc=2057 should work. I haven't used skydrive before so let me know if it doesn't.
Jul 21, 2009 09:57 PM|Allen Chen – MSFT|LINK
You can compress all files to a zip file and upload it to skydrive. Then I can download that zip file directly. Please let me know if it's done and paste the download link here.