HttpHandler 를 이해 하고 모든*.jpg 그림 에 텍스트 를 생 성 합 니 다.
1792 단어 HttpHandler
interface IHttpHandler
{
void ProcessRequest(HttpContext ctx);
bool IsReuseable { get; }
입 니 다.aspx 페이지 를 새로 만 들 고 HyperLink 컨트롤 을 추가 합 니 다.그.cs 파일 에 코드 전송 값
using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Web.SessionState;
namespace MyHttpHandler
{
public class Class1:IHttpHandler,IRequiresSessionState
{
#region IHttpHandler
public bool IsReusable
{
get { return true; }
}
public void ProcessRequest(HttpContext context)
{
context.Response.Write("handler ");
}
#endregion
}
}
을 추가 합 니 다.또한 웹.config 파일 에서 http Handlers 노드 를 다음 과 같이 바 꿔 야 합 니 다.