首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

前人留下来的

2012-05-23 
前人留下来的。求助inputtypebutton namesubmit1 value修改预定%if Nowdsysj1 then% onclick

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

热点排行