Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ASP.NET MVC から WebForms に単純なアプリケーションを移植しています。メソッドに のインスタンスを渡すことになっていますが、クラスからプロパティとして公開されているHttpRequestBaseのインスタンスしか見つかりません。HttpRequestRequestPage
HttpRequestBase
HttpRequest
Request
Page
HttpRequestBaseからのインスタンスを取得するにはどうすればよいSystem.Web.UI.Pageですか? それは可能ですか?
System.Web.UI.Page
から HttpRequestBaseHttpRequestWrapperに変換されるインスタンスを使用できます。HttpRequest
HttpRequestWrapper
var httpRequestBase = new HttpRequestWrapper(HttpRequest);
MSDN リファレンス マニュアル