Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Refresh Update Panel Using Javascript

DZone's Guide to

Refresh Update Panel Using Javascript

·
Free Resource
I’ve noticed a lot of discussion lately regarding methods to refresh an UpdatePanel via client script. This is very easy on the server side, of course. You can just call UpdatePanel.Update(). However, on the client side, the most common solutions is



  

 
protected void UpdatePanel1_Load(object sender, EventArgs e) { Label1.Text = DateTime.Now.ToString(); } __doPostBack() call is an async trigger of an UpdatePanel, the ASP.NET AJAX framework will intercept the postback and fire a partial postback instead. For purposes of demonstration, I’m going to add that to the OnClick event of the container div:
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}