Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
From my MVC controller I am returning a view and an ienumerable list<>...

return View("Index", clients)

I am using grid.mvc which, I believe, is including the previous URL so it can figure out the paging of the grid.

This is a PITA because the previous URL is often calling a SAVE() routine in the controller.

So, how do I "clear out" the URL but leave the paging section

URL: http://localhost:52545/Client/SaveNewClient?Name=Name&Email=Email&grid-page=7

At this point I would settle for just clearing out the URL and starting over with the default view.

What I have tried:

[httppost]
[httpget]

I have also tried not using a form SUBMIT and grabbing parameters from form collection.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900