Hello Jason,
I build a simple test web application in VS.NEt 2005, but I didn't find
same problem. Here is my code in the customized handler:
string targetUrl = "Test.aspx";
string sourceUrl = Request.Url.ToString() ;
context.RewritePath(targetUrl, string.Empty, "url=" + sourceUrl,
true);
IHttpHandler handler =
PageParser.GetCompiledPageInstance(targetUrl, null, context);
handler.ProcessRequest(context);
<httpHandlers> section in web.config:
<httpHandlers>
<add verb="*" path="*.aspx" type="MyHandler"/>
</httpHandlers>
Code for display time:
Response.Write(System.DateTime.Now.ToLongTimeString());
I test this on a windows server 2003. Is there any difference from your
settings?
Regards,
Luke Zhang
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Paresh - 23 Jun 2006 07:47 GMT
Hi All,
I am using ASP.net 1.1.
I have used HttpHandler for UrlRewriting for this I have used
Getcompiledpageinstance method.
Now because of this my caching logic is not working.
Scenario:
When user requests http://localhost/application/abc.html.I rewrite this
url as http://localhost/other_application/xyz.aspx using
GetCompliedPageInstance method.
Now I want to cache "http://localhost/application/abc.html" Url.
Is there any way for enabling page output caching for
"http://localhost/application/abc.html" Url.
Any help in this regards will be appreciated.
Thanks in advance
> Hello Jason,
>
[quoted text clipped - 34 lines]
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)