开发者

MVC3 controller action redirect to URL

开发者 https://www.devze.com 2023-02-12 21:49 出处:网络
I have this string \"/TrackMyJob/JobTasksInvolvedPartiesDetail?jobtaskobjid=638e17c9-8d0a-4da4-866f-098c619bab63\".

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 Redirectdocs method of the controller.

But why would you want to do that ? Isn't that url supported by your routes ?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号