I have the following code in a partial view:
<li>@Html.ActionLink("Text", "ViewName", "ViewFolder", new { param = 0 }, null)</li>
When I hover over the link, I can see in the browser the parameter being used
http://localhost:49781/ViewFolder/ViewName?param=0
Is there a way to hide this information from users? I wouldn't want them to copy and paste the url and start typing in there own values for the parameter.
The reason I am using a parameter is because my Model needs to know which stored procedure to execute. There are 5 links that will all use the same stored procedure, the only difference is the parameter being passed.
There is a possibility that, in the future, certain users shouldn't see certain things... but if all they have to do is change the param number to see what should be hidden, that can be a problem.
Also, I wouldn't want params being sent that could potentially "crash" anything
Thanks in advance for your help!