HTML.ActionLink method

前端 未结 10 1659
刺人心
刺人心 2020-11-22 11:07

Let\'s say I have a class

public class ItemController:Controller
{
    public ActionResult Login(int id)
    {
        return View(\"Hi\", id);
    }
}
         


        
10条回答
  •  礼貌的吻别
    2020-11-22 11:42

    You might want to look at the RouteLink() method.That one lets you specify everything (except the link text and route name) via a dictionary.

提交回复
热议问题