Solved

Composite server control using nested tags?

Posted on 2003-10-22
2
211 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 500 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

786 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