<%@ WebHandler Language=“C#” Class=“default” %>
using System;
using System.Web;
public class test : IHttpHandler {
public void ProcessRequest (HttpContext context) {
context.Response.ContentType = "text/html";
string tempstring = System.IO.File.ReadAllText(context.Request.MapPath("temp_page.aspx"));
string result = tempstring.Replace("@tempstr", "Hello,this is Nathan");
context.Response.Write(result);
}
public bool IsReusable {
get {
return false;
}
}
}