.net ashx 用法? 提示:未能创建类型“HandlerExample.TextBuilder”
.net ashx 用法? 提示:未能创建类型“HandlerExample.TextBuilder”我创建了 .ashx 和 .ashx.cs
.ashx 中
<%@ WebHandler language="C#" Class="HandlerExample.TextBuilder" codebehind="TextBuilder.ashx.cs"%>
.ashx.cs 中
using System.Web;
namespace HandlerExample
{
public class TextBuilder: IHttpHandler
{
// Override the ProcessRequest method.
public void ProcessRequest(HttpContext context)
{
context.Response.Write("<H1>This is an HttpHandler Test.</H1>");
context.Response.Write("<p>Your Browser:</p>");
context.Response.Write("Type: " + context.Request.Browser.Type + "<br>");
context.Response.Write("Version: " + context.Request.Browser.Version);
}
// Override the IsReusable property.
public bool IsReusable
{
get { return true; }
}
} --------------------编程问答-------------------- 又一个不结贴的主啊。。
给个链接http://www.cnblogs.com/rexz/archive/2005/09/08/232483.aspx
补充:.NET技术 , ASP.NET