Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7501873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T20:40:56+00:00 2026-05-29T20:40:56+00:00

I am using two validation summaries, but they don’t show error message.While required field

  • 0

I am using two validation summaries, but they don’t show error message.While required field validator is working, but validation summary does not show so my problem is that.
I want to show the error message.

<div>
        <asp:GridView ID="GrdHiringResource" runat="server" AutoGenerateColumns="False" DataKeyNames="hiring_resource_id"
            OnRowCancelingEdit="GrdHiringResource_RowCancelingEdit" OnRowDataBound="GrdHiringResource_RowDataBound"
            OnRowEditing="GrdHiringResource_RowEditing" OnRowUpdating="GrdHiringResource_RowUpdating"
            OnRowCommand="GrdHiringResource_RowCommand" ShowFooter="True" OnRowDeleting="GrdHiringResource_RowDeleting"
            BackColor="White" BorderColor="#D1B271" BorderStyle="None" BorderWidth="1px"
            CellPadding="4">
            <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" BorderColor="#D1B271" />
            <RowStyle BackColor="White" ForeColor="#000000" BorderColor="#D1B271" />
            <Columns>
                <asp:TemplateField HeaderText="Hiring Resource name" SortExpression="Location_name">
                    <EditItemTemplate>
                        <asp:TextBox ID="txtName" runat="server" Text='<%# Eval("hiring_resource_name") %>' ></asp:TextBox>
                        <asp:RequiredFieldValidator ID="ReqName" ValidationGroup="update" Display="Dynamic"

                            runat="server" ControlToValidate="txtName" ErrorMessage="Please enter ResourceName">*</asp:RequiredFieldValidator>
                    </EditItemTemplate>
                    <FooterTemplate>
                        <asp:TextBox ID="txtNewName" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="ReqNewname" runat="server" ValidationGroup="save"
                            ControlToValidate="txtNewName" ErrorMessage="Please enter ResourceName" Display="Dynamic"
>*</asp:RequiredFieldValidator>
                    </FooterTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%# Bind("hiring_resource_name") %>' ></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Description">
                    <EditItemTemplate>
                        <asp:TextBox ID="txtdescription" runat="server"  TextMode="MultiLine" Text='<%# Bind("description") %>'></asp:TextBox>
                          <asp:RequiredFieldValidator ID="Reqdescription" ValidationGroup="update" Display="Dynamic"

                            runat="server" ControlToValidate="txtdescription" ErrorMessage="Please enter Description">*</asp:RequiredFieldValidator>
                    </EditItemTemplate>
                    <FooterTemplate>
                        <asp:TextBox ID="txtNewdescription" runat="server" TextMode="MultiLine" ></asp:TextBox>
                        <asp:RequiredFieldValidator ID="ReqNewDescription" runat="server" ControlToValidate="txtNewdescription"
                            ErrorMessage="Please enter Description" ValidationGroup="save" Display="Dynamic">*</asp:RequiredFieldValidator>
                    </FooterTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label3" runat="server" Text='<%# Bind("description") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="" ShowHeader="False">
                    <EditItemTemplate>
                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" CommandName="Update"
                            Text="Update" ValidationGroup="update"></asp:LinkButton>
                        <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Cancel"
                            Text="Cancel"></asp:LinkButton>
                    </EditItemTemplate>
                    <FooterTemplate>
                        <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="true" CommandName="AddNew"
                            Text="Add New" ValidationGroup="save"></asp:LinkButton>
                    </FooterTemplate>
                    <ItemTemplate>
                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Edit"
                            Text="Edit"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:CommandField HeaderText="" ShowDeleteButton="True" ShowHeader="True" />
            </Columns>
            <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" BorderColor="#D1B271" />
            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" BorderColor="#D1B271" />
            <HeaderStyle BackColor="#D1B271" Font-Bold="True" ForeColor="#000000" HorizontalAlign="Center"
                BorderColor="#D1B271" />
        </asp:GridView>

    <asp:ValidationSummary runat="server"  ID="update" DisplayMode="BulletList" ShowMessageBox="true"
ShowSummary="false" EnableClientScript="false"/>
    <asp:ValidationSummary runat="server"  ID="save" DisplayMode="BulletList" ShowMessageBox="true"
ShowSummary="false" EnableClientScript="false"/>
      </div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T20:40:57+00:00Added an answer on May 29, 2026 at 8:40 pm

    I think this is the problem, set this property to true

      EnableClientScript="true" 
    

    Update:Got your problem, it is the validationGroup, either add validationGroup property to validationSummary or remove valiationGroup from RequiredFieldValidators

    <asp:ValidationSummary runat="server"  ID="update" DisplayMode="BulletList" ValidationGroup="update"/>
    <asp:ValidationSummary runat="server"  ID="save" DisplayMode="BulletList" ValidationGroup="save"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using two validation annotations on a property in the bean: @NotEmpty(message =
I am using two forms of text validation (one when they click Next, another
I'm using the jQuery Validation JS I have two contact forms, the main one
I am using a custom validator to compare value in two text box. This
Im using the bog standard form validation plugin. I have two radio buttons 'yes'
I am looking for validation framework and while I am already using NHibernate I
I am using javascript form validation, and jquery to display the error messaging and
I'm using two css id with same name in same page but with a
I'm using this two plug-ins jquery.validate and jquery.form separately, but I would like to
I'm using the jQuery Validation plugin and trying to validate two time fields. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.