Using Html.BeginForm with querystring

前端 未结 7 1616
无人共我
无人共我 2021-01-01 09:44

My url looks like this:

customer/login?ReturnUrl=home

In the login view, I have used this pattern of code which works fine.



        
7条回答
  •  感动是毒
    2021-01-01 10:19

    using Reflector to look at the code,

    BeginForm() will pass directly the rawUrl over to the final Form. Any other overloads on BeginForm will go through a helper utility which will strip the query string.

提交回复
热议问题