SimpleView, access request parameters and response parameter

Posted by Community Admin on 04-Aug-2018 15:08

SimpleView, access request parameters and response parameters from within

All Replies

Posted by Community Admin on 26-Jul-2011 00:00

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.

Posted by Community Admin on 29-Jul-2011 00:00

Hi Antoine,

The HttpContext can be requested directly:

protected override void InitializeControls(GenericContainer container)
    var context = HttpContext.Current;
 


Kind regards,
Radoslav Georgiev
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 29-Jul-2011 00:00

Thanks Radoslav.

I appreciate your help answering what, in hindsight, looks to be more like a .NET question then a Sitefinity question.

This thread is closed