在Asp中为什么这样保存的数据是空的

来源:百度知道 编辑:UC知道 时间:2024/07/04 11:50:55
在Asp中为什么这样保存的数据是空的
<input type="radio" name="xs" value="1" <%if rs("xianshi")=1 then%>checked<%end if%>> 显示
<input type="radio" name="xs" value="0" <%if rs("xianshi")=0 then%>checked<%end if%>>不显示

<%
Set rs=Server.CreateObject("Adodb.RecordSet")
rs.Open "Select * from BigClass where BigClassID=" & CLng(BigClassID),conn,1,3

rs("xianshi")=request.form("xs")
rs.update

%>

<%
if request.from("xs")<>""then
Set rs=Server.CreateObject("Adodb.RecordSet")
rs.Open "Select * from BigClass where BigClassID=" & CLng(BigClassID),conn,1,3

rs("xianshi")=request.form("xs")
rs.update
end if

%>