471,056 Members | 1,497 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,056 software developers and data experts.

GetCompiledPageInstance and Custom IhttpHandler

Hi,
I have written an HttpHandler to process page requests for a custom
file extension. The handler gets called as expected and after searching
the web for examples I have used a method called
GetCompiledPageInstance from the PageParser class for getting the web
page within the ProcessRequest method of the custom handler.
I then ran a performance test requesting the custom page mutliple times
(the custom file for the test was an aspx page that I renamed with the
custom file extension) and saw that the custom handler was being
called. I then changed the file extension to be aspx and requested the
page the same number of times as before and saw that the custom handler
was not being called and ASP.NET was processing the aspx page as
normal.
When I compared the performance i.e. requests\sec I noticed that there
was no hit in performance when using the custom handler.
I would have thought there would have been some performance hit and so
I can only think that calling GetCompiledPageInstance is not sufficient
and that to replicate what the ASP.NET handler does when processing a
request involves additonal calls e.g. authentication etc.

Can anyone point me in the direction of or supply me with some
information\sample code on what additional calls if any are required in
the custom handlers ProcessRequest method

Thanks in advance for any help
John

Jan 24 '06 #1
1 1814
GetCompiledPageInstance job is to return an object instance of the passed
page name. it will compile, load assembly and create instance for you, but
performs no page processing. you should call ProcessRequest on the instance
you get back.

-- bruce (sqlwork.com)
"Mutley" <Jo*********@Singularity.co.uk> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Hi,
I have written an HttpHandler to process page requests for a custom
file extension. The handler gets called as expected and after searching
the web for examples I have used a method called
GetCompiledPageInstance from the PageParser class for getting the web
page within the ProcessRequest method of the custom handler.
I then ran a performance test requesting the custom page mutliple times
(the custom file for the test was an aspx page that I renamed with the
custom file extension) and saw that the custom handler was being
called. I then changed the file extension to be aspx and requested the
page the same number of times as before and saw that the custom handler
was not being called and ASP.NET was processing the aspx page as
normal.
When I compared the performance i.e. requests\sec I noticed that there
was no hit in performance when using the custom handler.
I would have thought there would have been some performance hit and so
I can only think that calling GetCompiledPageInstance is not sufficient
and that to replicate what the ASP.NET handler does when processing a
request involves additonal calls e.g. authentication etc.

Can anyone point me in the direction of or supply me with some
information\sample code on what additional calls if any are required in
the custom handlers ProcessRequest method

Thanks in advance for any help
John

Jan 24 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Michael Iantosca | last post: by
24 posts views Thread by John Rivers | last post: by
2 posts views Thread by IanL | last post: by
5 posts views Thread by Author | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.