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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:25:06+00:00 2026-05-25T00:25:06+00:00

I would like to understand how I can run client-side javascript after an update

  • 0

I would like to understand how I can run client-side javascript after an update panel has finished updating given various constraints. My development scenario is non-trivial however, I would like to illustrate the problem by describing a simpler case.

I have a user-control containing an update panel which contains a button and a table. When the user clicks the button an async postback occurs, the table’s rows will be changed and the altered table will be returned and rendered on the client.

I would like to run a a script to perform some custom formatting on the table. Lets say for now I want to zebra stripe the table. (Actual requirements are more complex).

I thought I would simply be able to emit script as part of the user controls output and whenever an update occurs the table markup and the script would be handled on the client and all would be fine, but that technique does not work.

I’ve seen other posts that reference ClientScriptManager, but that doesn’t seem to be available inside my user control. Should I add a ScriptManagerProxy?

So what’s the best way to proceed, given the constraints.

  • The update panel is inside a user control.
  • There could be more than one instance of the user control on the page.

Looks like I need to

  • Generate a unique update script for each instance of the user-control.
  • Find a way to “register” each script
  • Find a way to ask for the script to be run when the corresponding updatePanel has finished updating.

I seem to have seen many examples which are close but none which match my circumstances; I can’t quite figure out how to get it all to hang together.

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

    you will have to write EndRequestHandler for it.
    It is a very common problem,Javascript,Jquery stops working after async postback from update panel.
    In this link i have explained how to do it.
    http://codethatworkedforme.blogspot.com/2011/08/having-issues-with-update-panel.html

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

Sidebar

Related Questions

I would like to know and understand the steps involved in fetching mail from
I would like to know this to understand why some games like Mario is
Conceptually, I would like to accomplish the following but have had trouble understand how
Conceptually, I would like to accomplish the following but have had trouble understand how
There are few scenarios which i can expect during my execution, I would like
I would like to update my SQL lite database with the native update-method of
I would like to compile my Java program in Eclipse but not to run
I would like to know: What technic is that code? Can you rewrite that
I know this question has been asked several times, but I would like to
Would like to get a list of advantages and disadvantages of using Stored Procedures.

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.