asp sql查询问题 - Web 开发 / ASP
小弟遇到一个问题:
就是在数据查询时它提示 标准表达式中数据类型不匹配。但是where后面的都是两个都是数字啊
我的数据库是如下图
我是对这个表查询两次 并且是嵌套的代码
HTML code:
<div id=mulu >
<ul>
<%
sql="select * from p_class where parentid=0"
set rs=conn.execute(sql)
if rs.eof then
response.Write("没有目录分类,请到后台添加")
else
do while not rs.eof %>
<li id=big><%=rs("class")%></li>
<%
sql2="select * from p_class where parentid='"&rs("id")&"'"
set rs2=conn.execute(sql2)
if rs2.eof then
else
do while not rs2.eof
%>
<li id=small><%=rs2("class")%></li>
<%
rs2.movenext
loop
end if
rs.movenext
loop
end if
%>
</ul>
</div>
谢谢yan11cn
,小弟基础不怎么好,还是得好好补补
相关问答:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jas ......
function CheckOpwd(){//验证用户名
var pwd=document.all.txtOpwd;
var div1=document.getElementById("divPwd");
if (pwd.value=="")
{
......
1.asp.net做的一个答题页面,如何实时限时后自动提交,请大家给点思路
限时的时间信息存放在数据库中
2.如果答题时间设置的较长,如何方式session超时后页面无效
谢谢
用js方法来控制
回复内容太短了。。
js ......
大家好!我是一个学生,现在是学ASP的不知道怎么回事,我自己是用CMS做过网站 代码也能看懂一点 现在想买本书,想法有很多,就是想买ASP的 又看到大家说ASP以后没有NET前景好,我又想再去买本ASP.NET的 我知道有这样的想法 ......
就是一个按钮,点击之后打开对话框,然后选取图片。就这样上传。。
怎么实现。在网上搜到那么多的代码,全是很多的那种,不知道,看不下去。
所以在这里想请大哥大姐帮帮忙。
使用自带的fileupload控件可以实现 ......