Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的视图页面中,我想链接到操作“显示”并将操作期望的 ID 作为参数传递给它。
我使用哪个 html 助手?我不希望它创建字符串的 a href 页面,只是创建 url。
<%= Url.Action("Display", "controller", new {ID = someIdValue}); %>