views:

55

answers:

1

Hi, 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.

How we could avoid this symbol?

+3  A: 

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.

Jordan S. Jones