我有以下ASP.Net
<%
Dim formShow As String = ""
If Request("formID") IsNot Nothing Then formShow = Request("formID").Trim
Select Case formShow
Case "mon":
Response.Write("A")
Case "tue":
Response.Write("B")
Case "wed"
Response.Write("C")
Case "thu":
Response.Write("D")
Case "fri":
Response.Write("E")
Case "sat":
Response.Write("E")
Case "sun":
Response.Write("E")
Case Else:
Response.Write("No selection")
End Select
%>
我想提出一个:
<!-- #include virtual="/path/to/file.aspx"-->
在Response.Write(“”)中,但它不喜欢它:
Response.Write("<!-- #include virtual="/path/to/file.aspx"-->") -->
有人可以帮忙吗?在此先感谢:)
答案 0 :(得分:0)
如果您只想尝试将#include添加到响应中,请尝试以下操作...
Response.Write("<!-- #include virtual=""/path/to/file.aspx""-->")