asp中sql case的用法请教!急!
发布网友
发布时间:2022-04-23 19:26
我来回答
共1个回答
热心网友
时间:2023-10-14 20:33
<%
select case cstr(rs("SUBJECT_TYPE"))
case "1"
ProblemType="Radio"
for n=1 to 4
%>
<input type="<%=ProblemType%>" name="No<%=rs("SUBJECT_ID")%>" value="<%=n%>"> <%=rs("CHOOSE"&n)%><br>
<% next
case "2"
ProblemType="Checkbox"
for n=1 to 4%>
<input type="<%=ProblemType%>" name="No<%=rs("SUBJECT_ID")%>-<%=n%>" value="<%=n%>"> <%=rs("CHOOSE"&n)%><br>
<%next
case "3"
%><input type="text" name="<%=rs("CHOOSE1")%>"><br><%
end select
%>