Skip to content

Control in ASP.NET

cit carlson

Asked Apr 11, 2012, 9:11 PM EDT1 answer
Share
LinkedInX
hi friends,
 
How to display the message the in validation summary control in ASP.NET?

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Senthilkumar
    0
    Hi,

    The header text and display mode has to be given.

    <asp:ValidationSummary
    HeaderText="You must enter a value in the following fields:"
    DisplayMode="BulletList"
    EnableClientScript="true"
    runat="server"/>

    This validation summary associated with the required field validator.

    <asp:RequiredFieldValidator
         ControlToValidate="rlist_type"
         ErrorMessage="Card Type"
         InitialValue=""
         Text="*"
         runat="server"/>

    It will display with header and mandatory fields in bullets.

    0