通过本文主要向大家介绍了文件下载 asp.net,文件上传 asp.net,多文件上传 asp.net,js调用asp.net方法,asp.net等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
在ASP.NET包含文件的方法有:
1.<% Response.WriteFile("skin/default/footer.txt")%>
2.<% server.execute("skin/default/footer.txt")%>
3.StreamReader 对象将包含文件写到 HTTP 内容流中
//me:网上说asp.net中用include也可以的。。
include和Server.Execute有什么区别?
server.execute表示将页面运行过后的HTML代码插入当前位置
include表示将页面的源代码加入当前位置再做为一个整体运行
比方说你定义一个变量dim a
用server.execute后这个定义是无效的
include的话,这个定义有效