?
Solved

Composite server control using nested tags?

Posted on 2003-10-22
2
Medium Priority
?
220 Views
Last Modified: 2006-11-17
Is it possible to create a composite server control where the Controls collection is based on nested HTML tags? An example is:

Class TAGA
  Inherits Label
  Implements I...
End Class

Class TAGB
  Inherits Label
  Implements I...

 Public Render(...
End Class

<TAGA runat="server"><TAGB runat="server" /> someliteral text <TAGB runat="server" /></TAGA>

This should create a hierarchical control structure.
0
Comment
Question by:jukes1
2 Comments
 
LVL 18

Accepted Solution

by:
testn earned 2000 total points
ID: 9602638
Yes, you can do that but you might need to override RenderChildren properly so that ASP.NET knows how to render the control....
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconrenderingwebformscontrol.asp
0
 

Author Comment

by:jukes1
ID: 9608676
Like a charm :)
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month13 days, 8 hours left to enroll

750 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question