用asp怎么判断option被选中

来源:百度知道 编辑:UC知道 时间:2024/07/01 02:02:00
asp有三目吗?

<option value="sf" <%if rs("option")="sf" then response.write("selected") end if%>>
这样会包错。

<%if rs("option")="sf" then response.write("selected")%>
一行就不要end if 了

<%if rs("option")="sf" then response.write("selected")%>

请问报什么错了?
你的语句语法上是没有错的。

对啊,报什么错了?语法上没看出来错误