Reputation: 2639
I am passing a parameter to the action method in this way:
@Html.ActionLink("Weddings", "Portfolio", new { param="Wedding" })
When the page opens, I have...param="Wedding#somenumber on every link on the page. How do I prevents links from grabbing this parameter?
Cheers, Leo.
Upvotes: 0
Views: 80
Reputation: 245399
You can't. There's no way to pass the parameter via a link without appending it to the URL string.
Your only other option would be to use a form with the POST method and place the parameter in a hidden input.
Upvotes: 1