how to define text of legend in code-behind?

  • Thread starter Thread starter Ben
  • Start date Start date
B

Ben

Hi,

i want to define the text of the legend of a fieldset programmatically.
I tried this but it couldn't find a way:

<body>
<form id="form1" runat="server">
<fieldset id="fs" runat="server">
<legend id="lg" runat="server"></legend>
</fieldset>
</form>
</body>

-----------------

Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
Dim a As ???
......
End Sub

Thanks
Ben
 
Back
Top