What is .Net equivilent of Fieldset/Legend

H

Harry Keck

I want to set up my UI to display a titled box around a group of controls,
like an html Fieldset with a Legend does, but I would like to do it entirely
with a ASP.Net controls. Is there a way to do this? I can put a panel
around a group of controls, but I do not know how to get text to display like
a legend does.
 
T

Teemu Keiski

If you want to access it programmatically you can just try using it as an
HTML control

<fieldset ID="Group1" runat="server">
....
</fieldset>

The code-behind type would be
System.Web.UI.HtmlControls.HtmlContainerControl (or equivalent from the
hierarchy)

As was said, rendering is one approach as well.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top