How to create, programmatically, using C# or VB.NET, a fieldset with a legend and some content, so that the resulting generated markup would look like this?
<fieldset><legend>foo</legend>res ipsa loquitur</fieldset>
Not looking for alternatives to <fieldset> as suggested here:
How to create HTML fieldset and legend in asp.net code behind?
Can this be done with ASP.NET HtmlGenericControl?
Thanks
1 Answer