suparba Panda

suparba Panda

  • NA
  • 103
  • 108.4k

Redirection in web service

Oct 12 2004 5:26 PM
I am new to webservice. What I am trying to do is redirect the page in webservice? How do I do it? It's giving error for the following code.When I am invoking it from the web service directly it works fine, but when I access from my web app it throws unhandled error. The method in web service: [WebMethod] public string hello() { //string apppath; Context.Response.AddHeader("Location","http://localhost/abcd/pageA.aspx"); Context.Response.StatusCode = 307; return null; }

Answers (1)