I’m trying to send the user id (integer) from a view to the action. If I pass it using routevalues object, the user id will be visible in the browser address bar. How can I pass user id from view to the action without using aforementioned method??
Share
You can use a hidden input element inside a form. You should generally use POST, not GET (i.e. use a form, not an a href) for anything that is changing data in your system.