This is a migrated thread and some comments may be shown as answers.

Dealing with objects using custom HttpModule

1 Answer 30 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andreas Kaech
Top achievements
Rank 1
Andreas Kaech asked on 20 Jun 2009, 07:11 PM
H Telerik,
I try to evaluate OpenAccess ;-)
Is there also a "Best practices in web development with OpenAccess" using RadSplitter?
Implementing a custom HttpModule (for dealing with objects) and using it with Splitter runs in a Session error (NullReferenceException).

Best regards,
Andreas

1 Answer, 1 is accepted

Sort by
0
Accepted
Zoran
Telerik team
answered on 22 Jun 2009, 09:35 AM
Hello Andreas Kaech,

The HttpModule approach of handling the object scope is just an example that works with the standard server ASP .NET controls. To be able to use it with rich AJAX controls as the Telerik ones, the http module should pass significant development to properly handle all requests that the controls make while rendering. Without doing so, the HttpModule is called too many times, so that results with exceptions in some cases or without full rendering of the controls.

I would personally recommend you going with some of the other two approaches for handling the object scope lifecycle in web - the MasterPage and HttpContext.Items collection. Those work immediately out of the box.

Best wishes,
Zoran
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
Andreas Kaech
Top achievements
Rank 1
Answers by
Zoran
Telerik team
Share this question
or