<%= Html.ActionLink("Download", "MyFile", "Jobs", new { MetaValue = MetaValues}, null)%>
how can i avoid the object routes to display in the url?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t avoid route values being displayed in the url. They are part of the url. This is their nature. Depending on your scenario and on what you are trying to do there are other ways to avoid sending sensitive information in the url.
If it is just a matter of not displaying them in the url you could use an HTML form with a POST request and a hidden field containing the value. This way it won’t be part of the url but the user can still see it and tamper with it (a little more difficult because he needs to use some tools but still feasible).