Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 07, 2012 03:42 AM by hc1
All-Star
20944 Points
3286 Posts
Apr 06, 2012 12:38 PM|LINK
if your class is not a business object but it is a part of something you have created specifically to work with asp.net you can call ResponseRedirect because in this case also the this class is a part of the "presentation layer".
Member
199 Points
234 Posts
Apr 06, 2012 03:45 PM|LINK
Thanks. Which class/namespace does ResponseRedirect belong to?
Apr 06, 2012 03:53 PM|LINK
HttpResponse Class System.Web Response method:
HttpContext.Current.Response.Redirect(....
Apr 07, 2012 03:42 AM|LINK
Thanks. I was using this earlier, and I hit the problem of the wrong relative paths.
I have just discovered that the Redirect method works with "~/xxxx" so this solved the problem for me now.
francesco ab...
All-Star
20944 Points
3286 Posts
Re: What MVC features available to normal class files?
Apr 06, 2012 12:38 PM|LINK
if your class is not a business object but it is a part of something you have created specifically to work with asp.net you can call ResponseRedirect because in this case also the this class is a part of the "presentation layer".
Mvc Controls Toolkit | Data Moving Plug-in Videos
hc1
Member
199 Points
234 Posts
Re: What MVC features available to normal class files?
Apr 06, 2012 03:45 PM|LINK
Thanks. Which class/namespace does ResponseRedirect belong to?
francesco ab...
All-Star
20944 Points
3286 Posts
Re: What MVC features available to normal class files?
Apr 06, 2012 03:53 PM|LINK
HttpResponse Class System.Web Response method:
HttpContext.Current.Response.Redirect(....
Mvc Controls Toolkit | Data Moving Plug-in Videos
hc1
Member
199 Points
234 Posts
Re: What MVC features available to normal class files?
Apr 07, 2012 03:42 AM|LINK
Thanks. I was using this earlier, and I hit the problem of the wrong relative paths.
I have just discovered that the Redirect method works with "~/xxxx" so this solved the problem for me now.