如何在 .ashx文件中 用 response

挨踢直男 2010-07-14 01:05:53
为什么.ashx文件中不能用 response 有什么办法让他可以使用

不是 context.Response

也不是 HttpContext.Current.Response
...全文
110 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
lfywy 2010-07-14
  • 打赏
  • 举报
回复
同意其他的解释,确实,楼主可以自己试试啊
孟子E章 2010-07-14
  • 打赏
  • 举报
回复
Response就是HttpContext.Current.Response
凤凰涅檠 2010-07-14
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 xhbmj 的回复:]
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
....
不行?
[/Quote]

......
happy664618843 2010-07-14
  • 打赏
  • 举报
回复
context.Response.Write("OK");
nocallstle 2010-07-14
  • 打赏
  • 举报
回复
HttpContext.Current.Response
前提引用system.Web
wuyq11 2010-07-14
  • 打赏
  • 举报
回复
context.Response.Write("OK");
无爱大叔 2010-07-14
  • 打赏
  • 举报
回复
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
....
不行?
挨踢直男 2010-07-14
  • 打赏
  • 举报
回复
有个类 面里用 Response的 现在在这个 ashx文件不能用了 怎么办
teerhu 2010-07-14
  • 打赏
  • 举报
回复
不是HttpContext.Current.Response
發生了靈異事件?
挨踢直男 2010-07-14
  • 打赏
  • 举报
回复
我的意思就是 Response
孟子E章 2010-07-14
  • 打赏
  • 举报
回复
从来没有小写的response 这个东西

62,074

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

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