我无法添加#地区在Visual Studio 2010年.ashx的 [英] i can't add #region to .ashx in visual studio 2010

查看:287
本文介绍了我无法添加#地区在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

这篇关于我无法添加#地区在Visual Studio 2010年.ashx的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆