开发者

MVC: How do I create link on server side

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!


In your controller you can use Url.Action to 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜