Re: Update page from client JaveScript

Paul ten Brink <[email protected]> Tue, 26 Feb 2008 08:57:34 +0100
Newsgroups gmane.comp.windows.devel.dotnet.web
Message-ID <OFB6B902C8.E2FFD0C1-ONC12573FB.002B3908-C12573FB.002BB908@philips.com>
Hi,

Cristopher: thanks a lot, that's exactly it. I tested it and it works like
a charm...

Shawn: I know that's the normal way to go in AJAX, but in this case it is
much easier to simply update the entire Page. Thanks.

Thanks for your time and help.
Paul ten Brink
[email protected]

------------------------------

> Date:    Mon, 25 Feb 2008 10:26:10 -0600
> From:    Christopher <[email protected]>
> Subject: Re: Update page from client JaveScript
>
> document.forms[0].submit()
>
> --
> -Christopher
> | AspInsider
> http://bluefenix.net
>
> On Feb 25, 2008, at 5:31 AM, Paul ten Brink =20
> <[email protected]> wrote:
>
> > Hi,
> >
> > Asynchronous callbacks are great for responsiveness. But sometimes =20
> > in such
> > a callback I find that the entire Page has to be refreshed, just =20
> > like in a
> > normal postback.
> >
> > Normally I would use Response.Redirect() or Server.Transfer() but =20
> > both are
> > not allowed in an asynchronous callback...
> >
> > So I'm stuck with updating the Page from client JavaScript, but the
=20=
>
> > only
> > way I know how to do this (window.location.reload) results in a =20
> > 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