Saturday, March 24, 2012

List. Is this possible in ASP.NET?

Hello,

I need to create the following code in ASP.NET:

<ol>
<li>
<label for="name" class="required">Name:</label>
<input name="name" id="name" size="30" value="" type="text">
</li>
<li>
...
</li>
</ol
Is this possible using ASP.NET server controls?

Thank you,
Miguel

asp.net code

<ol>
<li>
<asp:Label ID="name" CssClass="required" Text="Name" runat="server"></asp:Label>
<asp:TextBox ID="tb" size="30" runat="server"></asp:TextBox>
</li>
<li>... </li>
</ol>


So I need to add the <ol> and<il> tags using a literal right?

I just though there was maybe a control that would add those tags and to where I could add the text box and labels as items ...

Thanks,

Miguel

0 comments:

Post a Comment