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

  • Home
  • SEARCH
  • 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 3990448
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:29:44+00:00 2026-05-20T06:29:44+00:00

i have two update panels as follows (when linkbutton is clicked i’m trying to

  • 0

i have two update panels as follows (when linkbutton is clicked i’m trying to highlight div)

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>     
              <asp:Linkbutton id="btnChange" runat="server" OnCommand="LinkButton_Command"/>
              <asp:Linkbutton id="btnChange2" runat="server" OnCommand="LinkButton_Command"/>
        </ContentTemplate>        
</asp:UpdatePanel> 

<asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>    
             <div id="shdr">Hello there!</div> 
        </ContentTemplate>        
</asp:UpdatePanel>

I’m overriding OnLoadComplete and registering this script on page as follows

ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "divHigh", "$('#shdr').effect('highlight', {}, 3000);", True)

This highlights the div after postback but the timeout value doesn’t work it continues to show highlighted color and doesn’t change back.

What can be causing this not to work?

  • 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-20T06:29:45+00:00Added an answer on May 20, 2026 at 6:29 am

    If you’re using an UpdatePanel – i.e. a Script Manager

    $(function () {
     //Code that runs before update panel is fired.
    
            //Listen for update panel
            Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
            //Re-initialize jquery after an auto post back.
            function EndRequestHandler(sender, args) {
                //Do work after update panel fires.
            } 
        });
    

    So essentially you will have your jQuery code and then the same code inside the EndRequestHandler function if you want it to be able to run after a post back.

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

Sidebar

Related Questions

I have added two update panels to my page. I'm trying to update the
I have two update panels at my ajax page. This is first time I'm
I have scenario, I have two update panels on the page (both have update
I have two panels in update panel. In panel1, there is button. If I
I have two update panels on my page. The first has a form that
I have an ASP.NET page that contains two div's. Both have search fields and
I have an ASP.Net 2.0 page that contains two UpdatePanels. The first panel contains
I have a page with two ContentPlaceHolders. One has a DropDown and another UpdatePanel
I have two lists of custom objects and want to update a field for
The problem: I often have to update two or more repositories: One for the

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.