public class BaseHandler : IHttpHandler, IRequiresSessionState { public void ProcessRequest(HttpContext context) { OnLoad(context); } public bool IsReusable { get { return false; } } public virtual void OnLoad(HttpContext context) { } }
================================
public class test : BaseHandler { public override void OnLoad(HttpContext context) { //DOSomething } }
沒有留言:
張貼留言