you can not redirect the client from a web method. the redirect only
redirects the method call. your web method should return the redirect url,
and javascript can do the redirect.
document.location.href = redirectUrl;
-- bruce (sqlwork.com)
> Hi;
> I have an aspx page with a WebMethod to redirect the user to another page.
[quoted text clipped - 57 lines]
> HttpContext.Current.Response.Redirect("home.aspx", false); overload i have
> the "Authentication failed" error. So how can i redirect from a webmethod?
omer013 - 23 Jan 2008 00:57 GMT
Is there any way to redirect the page on the server side?
> you can not redirect the client from a web method. the redirect only
> redirects the method call. your web method should return the redirect url,
[quoted text clipped - 65 lines]
> > HttpContext.Current.Response.Redirect("home.aspx", false); overload i have
> > the "Authentication failed" error. So how can i redirect from a webmethod?
omer013 - 23 Jan 2008 01:05 GMT
Is there any way to redirect on the server side?
> you can not redirect the client from a web method. the redirect only
> redirects the method call. your web method should return the redirect url,
[quoted text clipped - 65 lines]
> > HttpContext.Current.Response.Redirect("home.aspx", false); overload i have
> > the "Authentication failed" error. So how can i redirect from a webmethod?
Ven - 18 Mar 2008 10:10 GMT
Hi,
Have you got the answer ? am also in same place, i want to redirect to
another from webmethod...
> Is there any way to redirect on the server side?
>
[quoted text clipped - 67 lines]
> > > HttpContext.Current.Response.Redirect("home.aspx", false); overload i have
> > > the "Authentication failed" error. So how can i redirect from a webmethod?