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 4126484
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T00:02:15+00:00 2026-05-21T00:02:15+00:00

I wonder if somebody could help me out with an issue which has been

  • 0

I wonder if somebody could help me out with an issue which has been stressing me out for some time now.

I want to include jQuery validation and the error summary inside an update panel on my page. I have found however that when the error summary div is inside the update panel, following the first postback, the summary no longer displays – however jQuery is still validating the form and preventing postbacks when the conditions I have set are not met.

To clarify, I am experiencing the following:

  1. First load of the page, attempt to submit the page without completing details -> post back is prevented and error summary is displayed as expected.

  2. Complete the forename and surname field, click submit -> the page is correctly submitted to the server.

  3. Now blank out either the forename or surname field and click submit -> the page does not postback to the server, however the error summary is not displayed to the user.

  4. Complete the forename and surname field -> the page is correctly posted back

If you move the the error summary div (div class="error-container") outside of the update panel the page works as expected. Unfortunately I am not able to do this with my design.

I wonder if anybody has experienced this issue, and whether you have found a work around?

To Recreate my issue you can use the following code:

TestValidator.aspx

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="TestValidator.aspx.vb" Inherits="TestValidator" %>

Forename:

Surname:

                $(document).ready(function () {

                    load();

                    Sys.WebForms.PageRequestManager.getInstance().add_endRequest(function () {
                        load();
                    });

                });

                function load() {

                    $("#<%= Me.Page.Form.ClientId %>").validate({
                        errorLabelContainer: $("ul", $('.error-container')),
                        wrapper: 'li'
                    });
                }

                function checkForm() {
                    return $("#<%= Me.Page.Form.ClientId %>").valid();
                }


            </script>
        </ContentTemplate>
    </asp:UpdatePanel>
</form>

TestValidator.aspx.vb

Partial Class TestValidator
Inherits System.Web.UI.Page

Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
    Me.btnSubmit.Text = "Submitted at: " & Now.ToString
End Sub

End Class

Thanks
David

  • 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-21T00:02:15+00:00Added an answer on May 21, 2026 at 12:02 am

    This is how I get my jQuery functions to run every page load inside my updatepanels:

    // Attach our single function that will call all of the functions 
    // we want to run OnLoad to the Sys.Application.add_load handler.
    
    if (Sys != undefined && Sys.Application) { 
        Sys.Application.add_load(callOnLoadFunctions); 
    } else { 
        window.onload = callOnLoadFunctions; 
    }
    
    function callOnLoadFunctions() {
    
        // Add all the functions to be called
    
        load();            // your method
        function1();       // some other function
        function2();       // another function
    
    }

    I put all my js at the bottom of the page, and this is usually referenced in an external js file right after my jQuery and plugins references.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

wonder if you could help me out with some Javascript. I have a string
wonder if someone could help me with a little problem. I have session values
I wonder why the value of i is 0 after sscanf has been previously
wonder if someone can help me i know what i want to achive but
wonder if I could get some advice on the best way to solve this
wonder if anyone can help; I have an a two dimensional array which I
Hey, I wonder if you guys could help me with redirecting the following url:
I wonder if somebody can help me flatten an XML file to CSV format.
I wonder if somebody would be kind enough to help me with my query?
I wonder whether someone could help me please. I'm capturing a Session variable within

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.