Notes:
1: The suffix of the newly created HTML is htm.
2: those in. ashx that require quotation marks are not required.
A.html
<! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <HTML xmlns = "http://www.w3.org/1999/xhtml">
Simple. ashx
<! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <HTML xmlns = "http://www.w3.org/1999/xhtml">
Simplelogin. ashx
<%@ WebHandler Language="C#" Class="simplegogin" %>using System;using System.Web;public class simplegogin : IHttpHandler { public void ProcessRequest (HttpContext context) { string modelPath = context.Server.MapPath("a.htm"); string htmlsendback = System.IO.File.ReadAllText(modelPath); context.Response.ContentType = "text/html"; context.Response.Write(htmlsendback); } public bool IsReusable { get { return false; } }}