@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"]
参考:https://www.cnblogs.com/firstcsharp/p/3238321.html
https://www.cnblogs.com/zinan/p/6479417.html
原文:https://www.cnblogs.com/shy1766IT/p/13494594.html