出于某种原因,如果我的包含在 if 语句中,它确实有效。我明白了
500内部服务器错误。您要查找的资源有问题,无法显示。
但是我在外面包含相同的行,如果它呈现正确并显示表单。我错过了什么吗?
<% elseif EmailError <> "?" then %>
<p class="StdParaHead">Can't Send Message</p>
<p style="color:red;font-weight:bold">Please fill in
<%if EmailError="NameBlank" then
Response.Write "your name"
ElseIf EmailError = "EmailBlank" OR EmailError = "InvalidEmail" then
Response.Write "a valid e-mail address"
ElseIf EmailError = "LocationBlank" then
Response.Write "your City and State"
ElseIf EmailError = "BadSecurity" then
Response.Write "the proper security information"
End if
%></p>
<p>clause1 </p>
<!--#include virtual="/includes/Content/ContactFormNew.inc"--> /* does not work here */
<% else %>
<p class="StdParaHead">Sorry...</p>
<p>Due to an uncertain error, your message could not be sent at this time. Please see our <a href="contact.asp">contact information</a> for other ways to contact Axiom Valuation Solutions, or try again later.</p>
<p><a href="/newlook/newsite/default.asp">Home</a></p>
<p> CLAUSE 2</p>
<!--#include virtual="/includes/Content/ContactFormNew.inc"--> /* does not work */
<%end if%>
<!--#include virtual="/includes/Content/ContactFormNew.inc"--> /* works here */