I am building a customization of FIleBrowserContentProvider.
From within HttpHandler's ProcessRequest, is there a way to access the instance of FileBrowserContentProvider that "initiated" the http request, so that I can access some data that I need to get the file contents to serve?
Thanks.
2 Answers, 1 is accepted
0
Accepted
Lini
Telerik team
answered on 01 Jun 2009, 01:04 PM
Hello,
The HTTP Handler works on a separate request, which means that you have no access to the controls (and their ViewState) on the page that started the request. If you need to send some data to your handler, you need to use alternative methods. For example, you can add some query string parameters to the request. If the data is too large for the request URL, you can serialize it and store it on the server (e.g. in the Session object).
Actually, now that you mention it, the minimum data that I need is already in Session, so, as you have suggested, I have added IRequiresSessionState to the handler and I can now access that session variable successfully. Thanks!