使用了KindEditor控件来录入信息,一直以来都用的好好的!但是今天把网站设置成了伪静态KindEditor的图片上传等HTML网页就显示不出来了。
成都创新互联坚持“要么做到,要么别承诺”的工作理念,服务领域包括:网站制作、网站建设、企业官网、英文网站、手机端网站、网站推广等服务,满足客户于互联网时代的习水网站设计、移动媒体设计的需求,帮助企业找到有效的互联网解决方案。努力成为您成熟可靠的网络建设合作伙伴!
经过努力寻找,终于找到了解决方法
在web.config的<compilation debug="true"> 加入下面这句话:
- <compilation debug="true">
- <buildProviders>
- <add extension=".html" type="System.Web.Compilation.PageBuildProvider" />
- </buildProviders>
- </compilation>
然后在</compilation>下加入
- <httpHandlers>
- <add verb="*" path="*.html" type="System.Web.UI.PageHandlerFactory"/>
- </httpHandlers>
完整就是:
- <compilation debug="true">
- <buildProviders>
- <add extension=".html" type="System.Web.Compilation.PageBuildProvider" />
- </buildProviders>
- </compilation>
- <httpHandlers>
- <add verb="*" path="*.html" type="System.Web.UI.PageHandlerFactory"/>
- </httpHandlers>
新闻名称:在.NET中编辑器在用伪静态后不能正常使用的解决方法
文章源于:https://www.cdcxhl.com/article28/gseccp.html
成都网站建设公司_创新互联,为您提供定制网站、品牌网站制作、网站维护、网站制作、域名注册、网站排名
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联