c# - why does the controllers action have HttpRequestBase, and the viewpage has HttpRequest? -
HttpRequestBase takes my methods as arguments, and I find it strange that why the controllers work to HttpRequestBase There is access, but the page is retrieved by the HTTPEEEE.
Is there any reason for this not through which thought?
View pages in MVC via HTTPPT ViewContacts. Access to HTPCitxt
, which is the HTTPTTBasebase
.
It appears that double access is just the way ASP.net works when you see the request. HTTPPTENTEX
, this is the injection of the ASP.NET pipeline of the original code httpcontact
. It can be accessed in any HTTPHandler, whether it is an MVC controller or view, or webform page or ashx.
Comments
Post a Comment