simshp
asked on
Create Dynamic .net pages
Hi all
I need to process all requests to pages with ext. (.htm) and create the page myself. I am not sure how to implement my page handler. I have been playing with code attached ... is this totaly of the mark ??
(have adjusted iis to process these pages)
Thanks
I need to process all requests to pages with ext. (.htm) and create the page myself. I am not sure how to implement my page handler. I have been playing with code attached ... is this totaly of the mark ??
(have adjusted iis to process these pages)
Thanks
class PageHandler : IHttpHandler, IRequiresSessionState
{
public bool IsReusable
{
get { return false; }
}
public void ProcessRequest(HttpContext context)
{
}
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If you select the [Configuration] button on a website or virtual directory that is an application you can use extension mappings to trigger process .HTM files with he ASP.NET DLL.
In ASP.NET 2.0 you can actually do it with the web.config.
You shouldn't have to write any customized code. If the extension is register properly you simply create HTM files the same way you would create an ASPX page.