【发布时间】:2011-03-15 10:52:05
【问题描述】:
我创建了一个通用处理程序 (ashx),但我试图在我的代码中添加区域,如下所示
#region MyRegionName
context.Response.ContentType = "text/plain";
context.Response.Write("Hello World");
#endregion
没有错误但是没有展开和折叠的问题。
请给点建议? 注意:我使用的是 Visual Studio 2010
【问题讨论】:
-
提供区域名称。
#region descriptionOfWhatThisRegionContains -
它仍然不起作用..因为 .cs 文件中的#region 如果没有描述,它会显示折叠事件
-
我在 asmx 文件中也注意到了这一点。
-
我现在注意到 ashx 即使在任何东西上都没有崩溃
标签: c# asp.net httphandler