Link to home
Start Free TrialLog in
Avatar of simshp
simshpFlag for Israel

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
class PageHandler : IHttpHandler, IRequiresSessionState 
           	{
		public bool IsReusable
		{
			get { return false; }
		}
 
		public void ProcessRequest(HttpContext context)
		{
                  }
}

Open in new window

Avatar of Ted Bouskill
Ted Bouskill
Flag of Canada image

Hmm, did you realize that you can register the extension in IIS and simply use ASP.NET?

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.
ASKER CERTIFIED SOLUTION
Avatar of simshp
simshp
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial