I have some search functionality in Index.cshtml
where the user can perform search based on email. The search returns a grid of users.
The grid has a name column which is a href. On click it takes me to another userInfo view after making a call to Users/Info/{userid}
in the UsersController
.
All of this works great, but after the userInfo.cshtml
is displayed, the back button is not working. I tried my best. It looks like prg pattern but I am not saving any data here.
Back button should either take me back to the page where they can click on the search and enter a email. It could also cache the email that was previously entered, perform the search and then show a grid.
Index.cshtml
"ajax": {
"url": "Users/LoadUsersData",
"type": "POST",
"datatype": "json",
data: {
User: {
Email: $('#User_Email').val(),
)
}