1
我想知道如何使用asp.net中的必需属性。在html中,我使用必填属性作为必填字段。 如何在asp.net中使用它?ASP控制中的必需属性
我试过这个,是否正确?
<p class="field-wrapper required-field">
<label>First Name</label>
<asp:TextBox ID="TextBox1" name="f_name" runat="server" required>
</asp:TextBox>
</p>
它是否在标准工具中可用? – user3386779
yes asp:RequiredFieldValidator应该可用 - 你不需要额外的框架 – fubo