blogs.conchango.com

welcome to the conchango blogging site
Welcome to blogs.conchango.com Sign in | Join | Help
in Search

Rory Street's Blog

Do you want fries with that?

Updating an MS Ajax Update Panel with JavaScript

This entry is more for my own future reference. If you need to update an MS Ajax update panel client side, use the following syntax in your JavaScript.

__doPostBack('myUpdatePanel', '')

Where 'myUpdatePanel' is the ID of your update panel. You can read more on this from Dave Wards blog.

Published 05 October 2008 13:52 by rory.street
Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

simon.evans said:

Hi Rory

I don't think you should be doing this though... because mixing the server side ASP.NET model with client side JavaScript is a messy business unless you are using extender controls.

This reason being that you need to be careful that you can safely identify control ids generated server side... if these change (for example because your control tree has changed) your javascript code will break.

October 8, 2008 11:45

Leave a Comment

(required) 
(optional)
(required) 
Submit
Powered by Community Server (Personal Edition), by Telligent Systems