hi i am using mvc3 and i had a link in my site which currently pass
one paramtere as shown following
<a href="/Call/@Model.id">Link To Call</a>
as you can see that i am passing a id to my Action , now i
need to pass another parameter but i dont want to change route
and current situation of link , can i send some something hidden.
by which my link looks same
i tried to do this by
Html.ActionLinkbut it doesn’t work
Please help me . Thanks In Advance
I would do something like this, as your hidden fields are dynamic:
add a class to your link:
Note that your href should be something like
and then, using jQuery, you can easily fillup your link and make that request.
your controller might look like this
if your route has the
IDyou can pick up the ID value from the routes and no need to pass it in the method.