asp select case&包含文件错误

时间:2012-01-11 15:16:49

标签: asp-classic

任何人都可以看到使用此代码的原因:

<% select case edit
case "specs" %>
<!-- #include file="edits/specs.asp" -->
<%  case "desc" 'LINE 28 HERE %> 
<!-- #include file="edits/desc.asp" -->
<%  case "review" %>
<!-- #include file="edits/review.asp" -->
<%  case "images" %>
<!-- #include file="edits/images.asp" -->
<%  case "floor" %>
<!-- #include file="edits/floor.asp" -->
<%  case else %>
<!-- #include file="edits/main.asp" -->
<%  end select %>

正在创建此错误: Microsoft VBScript编译错误'800a0400'

预期声明

/ * **** .com / edit2.asp,第28行

案例“desc” ^

因为我和我发现的关于它的博客似乎没问题,但是(虽然asp不是我最好的语言)

1 个答案:

答案 0 :(得分:3)

<%

select case edit
  case "specs"
    call server.execute("edits/specs.asp")
  case "desc"
    call server.execute("edits/desc.asp")
  case "review"
    call server.execute("edits/review.asp")
  case "images"
    call server.execute("edits/images.asp")
  case "floor"
    call server.execute("edits/floor.asp")
  case else
    call server.execute("edits/main.asp")
end select

%>