我正在创建一个注册表单,以下是密码和确认密码字段的设计代码
<tr>
<td class="style14">
<asp:Label ID="lblPass" runat="server" Text="Password"></asp:Label>
<asp:TextBox ID="txtPass" runat="server" Width="150px" EnableTheming="True"
TextMode="Password" ></asp:TextBox>
</td>
</tr>
<tr>
<td class="style23">
<asp:Label ID="lblCnfPass" runat="server" Text="Confirm Password"></asp:Label>
<asp:TextBox ID="txtCnfPass" runat="server" Width="150px" TextMode="Password"
CausesValidation="True"></asp:TextBox>
<asp:CompareValidator ID="CompareValidator1" runat="server"
ErrorMessage="Paswword doesnot Match" ValidationGroup="register" ControlToCompare="txtCnfPass"
ControlToValidate="txtPass">Paswword doesnot Match</asp:CompareValidator>
</td>
<td>
</td>
</tr>
问题是当我运行页面时,密码文本框填充了一些值,如图所示。我该如何删除它?还有一点是,当我将 TextMode 属性从密码更改为单行时,就没有这样的问题了!