Response.Write是直接输出到IE的,没有经过服务器端解释

解决方案 »

  1.   

    <%--#include virtual="/second/newtitlexwzx2.inc" --%>
      

  2.   

    在html里面插入<!--#include file='include/leftCategoryId15.htm'-->
      

  3.   

    我是想根据CategoryId值动态的include一个文件(leftCategoryId15.htm,leftcCategoryId16.htm ...),不想用select 或 if方式请问如何实现?
      

  4.   

    <!-- #include file='include/leftCategoryId<%= categoryID %>.htm' -->.aspx.cs里定义一个categoryID:
    protected string categoryID;try it.
      

  5.   

    我是用VB语言,用过类似方法,可是不行
    我的.aspx.vb中有以下语句:
    strleftInclude ="<!--#include file='include/leftCategoryId" & intCategoryId &  ".htm'-->".aspx文件有<%=strleftInclude%>我甚至把.aspx.vb文件中语句改成strleftInclude ="<!--#include file='include/leftCategoryId15.htm'-->" 都不行!如果在.aspx文件中用<!--#include file='include/leftCategoryId15.htm'-->替换<%=strleftInclude%>则行,不知为什么?