Solved

ASP.NET AJAX - send script from server to run immediately on page after partial page postback

Posted on 2011-02-17
1
272 Views
Last Modified: 2012-06-27
I've got an update panel on a page that loads information on a button click.  During the postback to the server I would like to be able to pass a script back down to the client to run as soon as the update panel finishes it's update.

I've tried using this so far in the button click event
ClientScript.RegisterStartupScript(this.GetType(), "HideCustomLoadingIndicator", "HideCustomLoadingIndicator();", true);

But it is not calling the javascript function as I'm wanting it to.  What is the key to making this happen?
0
Comment
Question by:JosephEricDavis
1 Comment
 
LVL 16

Accepted Solution

by:
BurnieP earned 500 total points
ID: 34921698
You should be able using the ScriptManager :

ScriptManager.RegisterStartupScript(Page, this.GetType(), "script", "your script", true);

0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now