读书人

前人留下来的

发布时间: 2012-05-23 13:44:13 作者: rapoo

前人留下来的。求助
<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="" > 

读书人网 >asp.net

热点推荐