include的用法:动态Include文件的讨论来源: 发布时间:星期四, 2008年9月25日 浏览:59次 评论:0
我们从
![]() <% \'得到用户所在 ![]() Dim Province Province = Request.form(\"Province\") \'下面显示这个省份相关 ![]() %> <!--# ![]() 你觉得上面 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 如果你确实需要动态包含 ![]() <% Select Case Province Case 1: %> <!--# ![]() <% Case 2: %> <!--# ![]() <% Case 3: %> <!--# ![]() <% End Select %> 应该说 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 所以 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 怎样动态Include文件? 解答 ASP ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 真是这样吗? 根据你使用Include ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 假设有两个样本HTM文件 ![]() ![]() ![]() ![]() <!-- 1.HTM: --> <font color=#ff0000>This is 1.htm</font> <!-- 2.HTM: --> <font color=#0000ff>This is 2.htm</font> 现在我们来试试动态Include: <% ![]() ![]() %> <!--# ![]() <% ![]() %> <!--# ![]() <% end ![]() %> 请注意:上面 ![]() ![]() ![]() ![]() ![]() http://localhost/Test.asp?param=2 http://localhost/Test.asp 上面我们是把 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() <% ![]() filespec = ‘2.htm‘ ![]() filespec = ‘1.htm‘ end ![]() filespec = server.mapPath(filespec) scr = ‘scripting.file ![]() ![]() ![]() content = f.readall ![]() ![]() response.write(content) %> 在IIS5.0/ASP3.0中 ![]() ![]() <% server.transfer filename server.execute filename %> 如果正好使用 ![]() ![]() ![]() 0
相关文章
读者评论发表评论 |