MVC3 controller action redirect to URL
I have this string "/TrackMyJob/JobTasksInvolvedPartiesDetail?jobtaskobjid=638e17c9-8d0a-4da4-866f-098c619bab63".
I got the above from HttpContext.Current.Request.Url.PathAndQuery
, is it possible my controller to redirec开发者_JAVA技巧t there ? if yes how ?
Thank you in advance.
You can use the Redirect
docs method of the controller.
But why would you want to do that ? Isn't that url supported by your routes ?
精彩评论