Last post Aug 21, 2009 01:06 AM by bec.username
Aug 20, 2009 03:46 AM|bec.username|LINK
There are 2 views in my mvc app that show a list of items. Both provide the ability to edit them by redirecting to a Edit view. How can I provide a back link on the Edit form that takes the user back to the list they were on?
Aug 20, 2009 08:48 AM|ZafarYousafi|LINK
create a hidden field in Edit view and save the UrlReferer in it. On postback use this field value to track the back address.
Aug 20, 2009 05:54 PM|maverickhyd|LINK
You can redirect the page with Appending PageName Querystring parameter url on click of edit button
Aug 21, 2009 01:06 AM|bec.username|LINK
Thanks everyone. I ended up using this
<a href="<%=Request.UrlReferrer.ToString()%>">Go back</a>