开发者

Alert Meassage Box Issue

I have an alert message for displaying the message of validation. But it开发者_如何学运维 includes one - symbol. I did not add this symbol on code. my code is shown below.

<tr>
  <td>
    <font face="Verdana, Arial, Helvetica, sans-serif" size="2">Login :</font>
  </td>
  <td>
    <font face="Verdana, Arial, Helvetica, sans-serif" size="2">
      <asp:TextBox ID="txtLogin" runat="server" CssClass="TextBox"></asp:TextBox>
      <asp:RequiredFieldValidator ID="Validator1" runat="server"
        ErrorMessage="Login Id is Required" ControlToValidate="txtLogin"
        Display="Dynamic">*</asp:RequiredFieldValidator>
    </font>
  </td>
</tr>
<tr>
  <td>
    <font face="Verdana" size="2">Password :</font>
  </td>
  <td>
    <asp:TextBox ID="txtPassword" runat="server" CssClass="TextBox" 
      TextMode="Password"></asp:TextBox>
    <asp:RequiredFieldValidator ID="Validator2" runat="server"
      ErrorMessage="Password is required" ControlToValidate="txtPassword"
      Display="Dynamic">*</asp:RequiredFieldValidator>
  </td>
</tr>
<tr>

The error message box image appended below:

alt text http://www.freeimagehosting.net/uploads/5483913c72.jpg.

How we could avoid this symbol?


If I remember correctly, this is a function of your ValidationSummary. Specifically the DisplayMode property. Check out the DisplayMode reference and the corresponding ValidationSummaryDisplayMode Enumeration.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜