ASP问题

etononline 2005-01-10 08:28:16
从数据库里读出数据如下:
然后每行数据前做了一个单选框。
当按下单选框时,可以对这行数据操作。。。。
请问这个代码怎么写呀。。。
<td width="80" height="28" align="center">用 户 名</td>
<td width="75" align="center">中文名字</td>
<td width="90" align="center">用户密码</td>
<td width="99" align="center">用户级别</td>
<td width="159" align="center">用户单位</td>
</tr><% do while not rs.eof %>
<tr bgcolor="F7FBFE">
<td height="30" align="center" width="32">
<input type="radio" name="uid" value="">这里是单选框</td>
<td height="30" align="center" width="80"><%=rs(0)%></td>
<td height="30" align="center" width="75"><%=rs(1)%></td>
<td width="90" height="30" align="center"><%=rs(2)%></td>
<td width="99" height="30" align="center"><%=rs(3)%></td>
<td width="159" height="30" align="center"><%=rs(4)%></td>
</tr><%
rs.movenext
loop
%>
</table>

</td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table><br>
<input name="aduser" type="button" class="av_gofd_but" onClick="javascript:window.hiddenForm.submit()" value="新建用户">
<input name="aduser" type="submit" class="av_gofd_but" id="aduser" value="资料修改">
<input name="aduser" type="submit" class="av_gofd_but" id="aduser" value="限权管理">
<input name="aduser" type="submit" class="av_gofd_but" id="aduser" value="删除用户">
...全文
93 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
红色银狐 2005-01-10
  • 打赏
  • 举报
回复
uid = Request.QueryString("uid")
conn.Execute "DELETE FROM 表 WHERE 字段='"&uid&"'"
conn.Close
etononline 2005-01-10
  • 打赏
  • 举报
回复
就是“修改资料”和“用户删除”的后台代码怎么写呀:
修改资料和用户删除都是按用户名来操作的。


<table width="525" border="1" cellpadding="0" cellspacing="0" bordercolor="#ffffff" class="av_gofd_but">
<tr bgcolor="#006699">
<td width="79" height="28" align="center">用 户 名</td>
<td width="79" height="28" align="center">中文名字</td>
<td width="79" align="center">用户密码</td>
<td width="67" align="center">用户级别</td>
<td width="85" align="center">用户单位</td>
<td width="60" align="center">资料修改</td>
<td width="60" align="center">用户删除</td>
</tr>
<% do while not rs.eof %>
<tr bgcolor="F7FBFE">
<td height="30" align="center" width="79"><%=rs(uid)%></td>
<td height="30" align="center" width="79"><%=rs(name)%></td>
<td height="30" align="center" width="79"><%=rs(password)%></td>
<td width="67" height="30" align="center"><%=rs(ra)%></td>
<td width="85" height="30" align="center"><%=rs(it)%></td>
<td width="60" align="center"><a href="user_modify.asp?uid=<%=rs("uid")%>" >修 改</a></td>
<td width="60" align="center"><a href="user_del.asp?uid=<%=rs("uid")%>" ONCLICK="javascript:return confirm('你确定要删除数据吗?')">删 除</a></td>
</tr><%
rs.movenext
loop
%>
</table>
八哥 2005-01-10
  • 打赏
  • 举报
回复
是太简单了
红色银狐 2005-01-10
  • 打赏
  • 举报
回复
把完整的代码贴出看看
fashchina 2005-01-10
  • 打赏
  • 举报
回复
不明白
太含糊了
samyan 2005-01-10
  • 打赏
  • 举报
回复
说清楚一点
etononline 2005-01-10
  • 打赏
  • 举报
回复
晕,没人帮忙吗?

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧