I need to pass the data from view to controller in an mvc project.
I've seen many examples with passing to controller using Form and having a submit button.
Actually I have @foreach to populate data like a grid in the razor view.The first field is a id, which is a link to the respective edit page to edit the fields corresponding to that id.
i need to get the clicked id to use it in the controller to display the corresponding edit page. Here there is no need of submit buttons.
Also i dont want to show the id in querystring, as the id should be secured.
How can i do that ? Please help
Thanks,