Joe On ASP.NET

Force an UpdatePanel Update from JavaScript

The ASP.NET AJAX UpdatePanel gets updated in one of 3 ways.

1.) An implicit control event triggers an update (that is a control inside the UpdatePanel is getting updated, etc.)

2.) The UpdatePanel has a <Triggers> Collection, and one of the defined triggers gets fired.

3.) The UpdatePanel’s Update metod is explicitly called in the course of some server side logic.

BUT…….  What if I want to explicity trigger an update to the UpdatePanel from my client side JavaScript code ???

Ceck out his link on CodeProject for a solution.

http://www.codeproject.com/useritems/UpdatePanelScriptExtender.asp

Comments

Wallace said:

Another option to cause an update panel to refresh is to call __doPostBack('{ClientID}',''); from your client script where {ClientID} is the client id of your UpdatePanel.

-Wallace

# August 17, 2007 5:10 PM

Sipke said:

Wallace, that's a nice and easy solution. Thanks!

# October 19, 2007 2:36 PM

James said:

The Link no longer works... any chance of an update? this looks like it could be useful.

# July 3, 2009 5:20 AM

Alejandro said:

# August 8, 2011 8:16 PM

Lemons said:

That the when Someone said a weblog, Lets hope which it doesnt

disappoint me up to this. After all, I be acquainted with it was

my ways to read, however I just thought youd

have something interesting to convey. All I hear is typically a

few whining about something you could fix whenever you werent too busy in search of attention.

# December 24, 2012 3:08 AM

Worthington said:

Quite a lot of thanks for creating the effort to discuss

this, I feel strongly about this and love learning a great

deal more on this subject. If feasible, because you gain expertise,

would you mind updating your website with a great deal more information?

It’s actually useful for me.

# January 10, 2013 3:45 PM

Baird said:

I’d need to verify with you here. Which is not one thing I usually do!

I take pleasure in reading a submit that will make individuals think.

Additionally, thanks for permitting me to remark!

# January 18, 2013 5:27 PM

Christianson said:

I admire that the useful facts you hand over inside your articles.

I will bookmark your weblog and also have my youngsters verify up here often.

I’m very sure they’ll find out tons of new things right here than anybody else!

# February 1, 2013 2:40 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)