asp下拉菜单代码转换
wsgwf.Fields.Item("kngsren").Value换成Recordset2.Fields.Item("kz3").Value错误<selectname=...
wsgwf.Fields.Item("kngsren").Value换成
Recordset2.Fields.Item("kz3").Value错误
<select name="kngsren">
<option value="阴性" <%if wsgwf("kngsren")="阴性" then Response.write "selected"%>>阴性</option>
<option value="阳性" <%if wsgwf("kngsren")="阳性" then Response.write "selected"%>>阳性</option>
</select>
换成下面代码竟然错误?已选项不是默认想选,请问错误到那里了
<select name="kngsren">
<option value="阴性" <%if Recordset2("kz3")="阴性" then Response.write "selected"%>>阴性</option>
<option value="阳性" <%if Recordset2("kz3")="阳性" then Response.write "selected"%>>阳性</option>
</select>
<select name="kz3">
<option value="阴性" <%if Recordset2("kz3")="阴性" then Response.write "selected"%>>阴性</option>
<option value="阳性" <%if Recordset2("kz3")="阳性" then Response.write "selected"%>>阳性</option>
</select>
仍然错误 展开
Recordset2.Fields.Item("kz3").Value错误
<select name="kngsren">
<option value="阴性" <%if wsgwf("kngsren")="阴性" then Response.write "selected"%>>阴性</option>
<option value="阳性" <%if wsgwf("kngsren")="阳性" then Response.write "selected"%>>阳性</option>
</select>
换成下面代码竟然错误?已选项不是默认想选,请问错误到那里了
<select name="kngsren">
<option value="阴性" <%if Recordset2("kz3")="阴性" then Response.write "selected"%>>阴性</option>
<option value="阳性" <%if Recordset2("kz3")="阳性" then Response.write "selected"%>>阳性</option>
</select>
<select name="kz3">
<option value="阴性" <%if Recordset2("kz3")="阴性" then Response.write "selected"%>>阴性</option>
<option value="阳性" <%if Recordset2("kz3")="阳性" then Response.write "selected"%>>阳性</option>
</select>
仍然错误 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询