当前位置: 代码迷 >> ASP.NET >> 前人留下来的
  详细解决方案

前人留下来的

热度:5068   发布时间:2013-02-25 00:00:00.0
前人留下来的。求助
<input type="button" name="submit1" value="修改预定" 
<%if Now<dsysj1 then%> onclick="modify_startresource()"  
<%else%> onclick="modify_endresource()" 
<%end if%>  
style="" >

为什么这样就会出错。

<input type="button" name="submit1" value="修改预定" 
<%if Now<dsysj1 then%> onclick="modify_startresource()"  

<%end if%> style="" >

else后面的去掉就正常了。不会VBS啊。。

------解决方案--------------------------------------------------------
VBScript code
<input type="button" name="submit1" value="修改预定"  <%if Now<dsysj1 thenresponse.write("onclick='modify_startresource()'") else response.write("onclick='modify_endresource()'" ) <%end if%>   style="" >
  相关解决方案