c# - Return to a url from an action method in asp.net mvc -
I am using asp.net mvc.
Clicking on the "Link" link I have called on an action method to add the document to the Favorites list.
Click the "Add Favorites" link How do I return to the same method in the action method before clicking?
For example
MyPage
Page 1 of 3
Document1 [Add to Favorites] (One Link Calling an Action Method)
Document 2 [Add to Favorites] (A link which is an action method called
DOCUMENT 3 [Add to Favorites] (
DOCUMENT 4 [ADD TO FAIR] (a link calling an action method)
Paging Is retained in the URL with query string parameters.
P>
When they add, I want to be able to keep the URL because it considers that page number
Are you just the current page Can not be added to the Action Parameter?
Public ActionScript AddFavourite (int page) {/ page parameter return view (whatever your_pages_view_is); }
Comments
Post a Comment