Dealing with objects using custom HttpModule

Thread is closed for posting
2 posts, 1 answers
  1. Andreas Kaech
    Andreas Kaech avatar
    121 posts
    Member since:
    Sep 2004

    Posted 20 Jun 2009 Link to this post

    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
  2. Answer
    Zoran
    Admin
    Zoran avatar
    534 posts

    Posted 22 Jun 2009 Link to this post

    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.
Back to Top