@using (Html.BeginForm())动态传参
@using (Html.BeginForm("Register", "Account", new { sourceType = Request.QueryString["sourceType"] },FormMethod.Post))
http://localhost:7294/ccount/Register?sourceType=1
则获取sourceType=1
视图页面直接获取url get传值, 1.@Request.QueryString["look"] 2.@ViewContext.RequestContext.HttpContext.Request.Params["look"]
此随笔或为自己所写、或为转载于网络。仅用于个人收集及备忘。

浙公网安备 33010602011771号