SimpleView, access request parameters and response parameters from within
I have a class that inherits from SimpleView. In my InitializeControls method, as well as in other methods, I would like to access the HttpRequest and HttpResponse. How do I get access to these from within my class?
My intention is to determine the parameters passed in the URL.
Hi Antoine,
The HttpContext can be requested directly:
protected override void InitializeControls(GenericContainer container)
var context = HttpContext.Current;
Thanks Radoslav.
I appreciate your help answering what, in hindsight, looks to be more like a .NET question then a Sitefinity question.