第一步找到处理程序映射,如下图
第二步,双击开来,点击添加脚本映射
第三步,添加映射
<script type="text/javascript" src="http://www.sz886.com/js/jquery-1.9.1.min.js"></script>
1:处理映射程序添加模块映射 请求路径 *.html 模块选择 ServerSideIncludeModule,名称填写:SSINC-html
2:重新启动IIS
3:其中一个页面 中写<!--#include virtual="/IndexInclude/downcc.html" -->
4:downcc.html 为utf-8编码,发现在引入后页面有空白页,请删除BOM
5:生成downcc.html时 编码
Encoding code = new UTF8Encoding(false)// create encoding with no BOM
StreamWriter sw = new StreamWriter(path + htmlfilename, false, code)
这样就解决IIS7不支持include的问题,以及出现页面空白的问题。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)