代码如下:
<%@ WebHandler Language="C#" Class="ajaxload" %>
using System;
using System.Web;
public class ajaxload : IHttpHandler {
public void ProcessRequest (HttpContext context) {
context.Response.ContentType = "text/plain";
string word = context.Request.Params["word"];
context.Response.Write(string.Format("
More intorduction of {0} is here....
",word));}
public bool IsReusable {
get {
return false;
}
}
}
前台代码如下:
代码如下: