Re: Update page from client JaveScript
Shawn Wildermuth <[email protected]> Mon, 25 Feb 2008 07:09:02 -0500
| Newsgroups | gmane.comp.windows.devel.dotnet.web |
|---|---|
| Message-ID | <[email protected]> |
You want to refresh the entire HTML? Can't you just update the data in the HTML with the results of the Aynch call (using the DOM) or use an Update Panel to update most of the page (though this is heavier than the first option but a lot less work). Are you using ASP.NET AJAX? Thanks, Shawn Wildermuth http://adoguy.com http://wildermuthconsulting.com http://geekdinners.com Microsoft MVP (C#), MCSD.NET, Author and Speaker The Silverlight Tour is coming to a city near you! -----Original Message----- From: Discussion of building .NET applications targeted for the Web [mailto:[email protected]] On Behalf Of Paul ten Brink Sent: Monday, February 25, 2008 6:32 AM To: [email protected] Subject: [DOTNET-WEB] Update page from client JaveScript Hi, Asynchronous callbacks are great for responsiveness. But sometimes in such a callback I find that the entire Page has to be refreshed, just like in a normal postback. Normally I would use Response.Redirect() or Server.Transfer() but both are not allowed in an asynchronous callback... So I'm stuck with updating the Page from client JavaScript, but the only way I know how to do this (window.location.reload) results in a dialog box "Are you sure you want..." and the Page does not really update. Is there another way to issue a normal postback of a Page in client JavaScript? Thanks for your time and help. Paul ten Brink [email protected] =================================== This list is hosted by DevelopMentor. http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com