I want to be able to pass link to view from controller. Is there anything like Html.ActionLink on the server side?
Thank you for your help!
I want to be able to pass link to view from controller. Is there
Share
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.
In your controller you can use
Url.Actionto generate a new url using actions, controllers and routevalues.This will not return a
<a>tag, but only the url, for you to use in your controller.