Solved

Composite server control using nested tags?

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
WPF - Tooltips for ComboBox items 5 37
Needing an event fired when a row is added on a datagridview 4 36
Syntax Error 2 46
C#.NET and microsoft certification. 3 34
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:…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

896 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now