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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T01:31:38+00:00 2026-05-19T01:31:38+00:00

I have an asp:UpdatePanel that is hidden or not based on the code behind

  • 0

I have an asp:UpdatePanel that is hidden or not based on the code behind of an asp:DropDownList at OnSelectedIndexChanged.

When this Update Panel is shown, there is some jquery to highlight the new area:

  $(document).ready(function(){
      $('#Alert').animate({backgroundColor:'#FF953F'});
      $('#Alert').animate({backgroundColor:'white'}, 3000);
  });

This works great once the update panel is show again, but the first time it comes back, the jquery is running before the code behind, so there is a 3000ms pause and then the panel is shown with no highlighting.

How can I make sure the jquery runs after the panel is shown?

I have tried adding an if visible and delay to the JavaScript:

        $('#<%=ddlInfo.ClientID %>').change(function(){
            if( $('#Alert').is(':visible')){
                $('#Alert').animate({backgroundColor:'#FF953F'});
                $('#Alert').animate({backgroundColor:'white'}, 3000);
            };
        });

This didn’t make a change as the JavaScript runs before the panel is back.

And a delay:

    $('#Alert').delay(1000).animate({backgroundColor:'#FF953F'});

This worked great at delaying the panel from showing as the code behind had to wait until the delay was complete before it could show the panel again.

Thanks for any ideas on this.

  • 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-19T01:31:39+00:00Added an answer on May 19, 2026 at 1:31 am

    Have you tried the EndRequestHandler yet?

    Take a look at the following post.

    http://zeemalik.wordpress.com/2007/11/27/how-to-call-client-side-javascript-function-after-an-updatepanel-asychronous-ajax-request-is-over/

    And search for endRequestHandler on asp.net forums has a number of good posts.

    I hope this can help.

    Bob

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

Sidebar

Related Questions

I'm using an Ajax update panel and have recently added ASP.NET tracing code to
I have an ASP.Net 2.0 page that contains two UpdatePanels. The first panel contains
When I have a regular textbox in a UpdatePanel (not an ASP.NET control) with
I have asp.net form that contains fields. When I access this window, my javascript
I have ASP.Net code similar to the following (this is inside a FIELDSET): <ol>
I have a asp:ListBox wrapped inside an asp:UpdatePanel. The list box contains all the
I have an ASP.Net CheckBoxList control inside an Ajax UpdatePanel. I will include the
I'm using the ASP net Ajax toolkit and have a GridView within the UpdatePanel
I'm having trouble with updating an ASP:UpdatePanel using javascript (jQuery). Here're what I have.
I have a Repeater with an ASP.NET AJAX 1.0 UpdatePanel inside it. There are

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.