我无法添加#地区在Visual Studio 2010年.ashx的

问题描述:

我创建一个通用处理器(ashx的),但我试图在我的code区添加类似下面的

i create a generic handler (ashx) but i am trying to add region in my code like the following

 #region MyRegionName
   context.Response.ContentType = "text/plain";
   context.Response.Write("Hello World");
 #endregion

有没有错误,但有没有扩大和崩溃的问题。

there is no error but the problem that there is no expand and collapse.

请什么建议吗?
注:我使用Visual Studio 2010

please any advice ? note: i am using visual studio 2010

您好,我想我想出答案我自己

hi i think i figure out the answer my self

在Visual Studio中去:

in visual studio go to:

1工具 - >选项 - >选择文本编辑器。结果
2 - 在右侧窗格中添加扩展ashx的,然后从下拉列表中u使用哪个编辑器。我选择微软的Visual C#。结果
3在扩展名映射至底部检查:以上相同的选择结果
4-点击确定关闭的ashx页面,然后重新打开。

1- Tools -> option -> select Text Editor.
2- in the right pane add an extension "ashx" and choose from the drop down list which editor u use .. i select microsoft visual c#.
3- in the bottom check on "map extensionless to : the same selection above.
4- click ok and close the ashx page and reopen it.

THX每一个身体的答案

thx every body for the answers