Last post Jan 12, 2011 05:00 PM by miodrag zivkovic
Jan 06, 2011 07:46 PM|viswaug|LINK
I am using the WCF REST starter kit to create a service that accepts a form post from a web page and creates a new record in our database. On successfully updating the DB, I want to redirect the user to another page. How would I go about doing a redirect
or responding with a HTTP STATUS CODE 302? What should be the return type for the operation?
Jan 10, 2011 09:30 AM|Miodrag Zivkovic|LINK
To do redirecting with 302 http code just use the following:
Response.Redirect("target url"); // C# code
Jan 10, 2011 11:28 AM|viswaug|LINK
I can't do the Response.Redirect from inside a WCF operation. Response might even be NULL if i don't have the asp.net compatibility turned OFF.
Jan 10, 2011 04:43 PM|Miodrag Zivkovic|LINK
Jan 12, 2011 12:41 PM|viswaug|LINK
Jan 12, 2011 04:45 PM|viswaug|LINK
That works. Thanks. Appreciate it
Jan 12, 2011 05:00 PM|Miodrag Zivkovic|LINK
What resource from the given link has been the most helpful?
Thank you :)