我是 asp.net 的新手,遇到了一些小问题。问题是将Textbox
和设置label
在不同的位置,当我使用<br/>
标签时,表单看起来很糟糕,我该如何解决流程?
代码是:
<tr>
<td align="right" style="padding-right: 5px;" class="style6">
<asp:Label ID="lblEmailId" runat="server" Text="EMAIL ID :"></asp:Label>
</td>
<td align="left" style="padding-left: 5px;" class="style6">
<br/><br/><br/>
<asp:TextBox ID="txtEmailId" runat="server" Width="70%" AutoCompleteType="Office"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtEmailId"
ErrorMessage="You can't leave this empty." Style="color: #FF0000;"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="rfvEmailId" runat="server" ControlToValidate="txtEmailId"
ErrorMessage="Not a Valid Email Address" SetFocusOnError="True" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
ValidationGroup="CreateUserWizard1" Style="color: #FF0000;" /> <br />
</td>
</tr>
<tr>
<td colspan="2">
<br />
</td>
</tr>
<tr>
<td align="right" style="padding-right: 5px; " class="style6">
<asp:Label ID="lblPhoneNo" runat="server" Text="PHONE NO. :"></asp:Label>
</td>
<td align="left" style="padding-left: 5px; " class="style6">
<asp:TextBox ID="txtPhoneNo" runat="server" Width="70%" AutoCompleteType="Office"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPhoneNo"
ErrorMessage="You can't leave this empty." Style="color: #FF0000;"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="rfvPhoneNo" ControlToValidate="txtPhoneNo" ValidationExpression="\d{10}"
ErrorMessage="The number must be 10 numeric digits!" runat="server" Style="color: #FF0000;" />
</td>
</tr>
请任何人都可以帮助我完成这个流程......,