我是asp.net的新手并面临一些小问题。问题是为文本框和标签设置Display =“Dynamic”,但是它显示了一些错误,并且有任何相同的标签,如Display =“Dynamic”for textbox and lable ....,
代码是:
<tr>
<td align="right" style="padding-right: 5px; width: 50%;" >
<asp:Label ID="lblFirstName" runat="server" Text="FIRSTNAME :"></asp:Label>
</td>
<td align="left" style="padding-left: 5px; width: 50%;" >
<asp:TextBox ID="txtFirstName" runat="server" Width="70%"></asp:TextBox>
<br />
<asp:RequiredFieldValidator ID="rfvFirstName" runat="server" Display="Dynamic" ControlToValidate="txtFirstName"
ErrorMessage="You can't leave this empty." Style="color: #FF0000;"></asp:RequiredFieldValidator>
</td>
</tr>
请帮我解决这个问题......,