validationSummary always show the HeaderText

M

Mr. x

Hello,

I am using the validationSummary control.

I have a problem, that when nothing is wrong - all fields are required, and
there is a value -
I still get the message of the validationSummary control.

Something like this :

<asp:Table runat="server" CellPadding="0" HorizontalAlign="Center" dir =
"rtl" border = "0" width = "558">
<asp:TableRow>
<asp:TableCell>
<asp:RequiredFieldValidator
ControlToValidate="a_name"
Text="*"
runat="server" />
</asp:TableCell>
<asp:TableCell>name:</asp:TableCell>
<asp:TableCell><asp:TextBox id="a_name" runat="server"
/></asp:TableCell>
</asp:TableRow>

<asp:TableRow>
<asp:TableCell ColumnSpan = "3">

<asp:ValidationSummary
HeaderText="Required fields are :"
DisplayMode="BulletList"
EnableClientScript="true"
runat="server"/>
</asp:TableCell>
</asp:TableRow>


</asp:Table>

What is wrong in my code ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,039
Messages
2,570,375
Members
47,020
Latest member
anuradha

Latest Threads

Top