Solved

Composite server control using nested tags?

Posted on 2003-10-22
2
213 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Suggested Solutions

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

726 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