By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,043 Members | 1,271 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,043 IT Pros & Developers. It's quick & easy.

How to intercept a page request prior to the actual page load

P: 5
When a page is requested in the .net architecture I believe there are a number of events that happen prior to .net actually trying to find the page in the file system.

I would like to intercept the page request at that point to interrogate the requested page for possible redirect.

I remember that in ASP 1.0 this was possible.

Does anyone have an idea how to do this in Dot Net?

The issue is that I would like to create a virtual file system. I have a number of files stored in a SQL DB. For example picture.jpg.

the way to access this is to create an ASPX file that when called is passed a parameter the contains the file to display and then return the data so that the browser can display the image. i.e.

This certainly works but it would be nice to be able to use When picture.jpg exists in a SQL server DB. To do this I would need to intercept the request string and see if the request is for a jpg image. Then search the DB for that image. If it exists return the image as if it was being returned from the file system.

Any ideas?
Apr 27 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.