求大神们帮忙看看这是怎么了

cmd1111 2016-01-27 11:37:34
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ISS.Project.BusinessRules.MobileManage;
using ISS.Project.BusinessRules.jQueryAjaxHelper;

namespace WebSite.Interface
{
/// <summary>
/// Handler_HotelNumZJ 的摘要说明
/// </summary>
public class Handler_HotelNumZJ : IHttpHandler
{


public void HotelNumZJRequest(HttpContext context, string year)
{
string str = context.Request.QueryString["callback"];

AjaxResultMessage resultMsg = BR_WEB_MOBILE_ImgPage.GetHotelNumZJInfo(year);

if (string.IsNullOrEmpty(str) == false)
{
resultMsg.Data = str + "(" + resultMsg.Data + ")";
}
context.Response.Clear();
context.Response.Write(resultMsg.Data);
context.Response.End();
}


public bool IsReusable
{
get
{
return false;
}
}
}
}






错误问题:

错误 2 “WebSite.Handler”不实现接口成员“System.Web.IHttpHandler.ProcessRequest(System.Web.HttpContext)” D:\VS2010 workspace\HubeiManage\HubeiManage\ISS.Project\WebSite\Interface\Handler.ashx.cs 13 18 WebSite
错误 8 “WebSite.Interface.Handler_HotelNumZJ”不实现接口成员“System.Web.IHttpHandler.ProcessRequest(System.Web.HttpContext)” D:\VS2010 workspace\HubeiManage\HubeiManage\ISS.Project\WebSite\Interface\Handler_HotelNumZJ.ashx.cs 13 18 WebSite












...全文
221 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
实现ihttphandler接口,继承接口必须实现它的所有方法
Poopaye 2016-01-27
  • 打赏
  • 举报
回复
ProcessRequest没写
Poopaye 2016-01-27
  • 打赏
  • 举报
回复
引用 4 楼 cmd1111 的回复:
[quote=引用 1 楼 shingoscar 的回复:] ProcessRequest没写
HotelNumZJRequest就是我改的ProcessRequest方法,就是为了添加参数String year 我把HotelNumZJRequest改回了ProcessRequest也没用了,要咋搞?? [/quote] 这2个类没有ProcessRequest方法 就算你改名字,参数不一样也不行
cmd1111 2016-01-27
  • 打赏
  • 举报
回复
引用 1 楼 shingoscar 的回复:
ProcessRequest没写
HotelNumZJRequest就是我改的ProcessRequest方法,就是为了添加参数String year 我把HotelNumZJRequest改回了ProcessRequest也没用了,要咋搞??
cmd1111 2016-01-27
  • 打赏
  • 举报
回复
HotelNumZJRequest就是我改的ProcessRequest方法,就是为了添加参数String year 我把HotelNumZJRequest改回了ProcessRequest也没用了,要咋搞??

1,978

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 其他语言讨论
社区管理员
  • 其他语言社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧