|
Not very familiar with HttpHandler and HttpModule. Now I want to implement the following functions:
When a user requests something like: /Info/Detail/*/*/*/*.aspx, such as
/Info/Detail/2016/06/30/1584587.aspx, I first determine whether the file exists, if it does not exist, create it, otherwise visit the page directly. Functions similarly to file system caching.
I now use HttpHandler to handle it and find that the file has been created, but the content of the window to access the page is blank. If you move the created file to another directory, such as / Info /, you can access it. Later I added after the creation of MyHandler's ProcessRequest:
context.Response.Redirect (context.Request.Path);
It doesn't work, it will cause an endless load ~~
What should I do, or should I use HttpModule?
I kindly ask for your thoughts, thank you! !! !! |
|