Asp和记录问题 [英] Asp and records issues

查看:86
本文介绍了Asp和记录问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

      NOT  Recordset.Eof 
Response.Write( found;)
Response.Write Recordset( name
Response.Write Recordset( pword
Response.Write Recordset( role
Response.Write
Recordset.MoveNext
循环





以下代码显示找到两次,因为sql数据库中的表user包含2记录但是没有显示价值。



可以告诉我为什么??????

解决方案

< blockquote>最有可能的原因是你的列名错了。像有人建议的那样试试指数。



如果你有机会摆脱经典的ASP,这已经十年没有得到支持而且总是糟透了,那就去做吧。你正在一个枯萎的飞地进行编码。


Do While NOT Recordset.Eof
    Response.Write ("found";)
    Response.Write Recordset("name")
    Response.Write Recordset("pword")
    Response.Write Recordset("role")
    Response.Write 
    Recordset.MoveNext
Loop



The following code is displaying that "found" twice as the table "user" in sql databse contain 2 record But is not displaying the value.

Can any1 tell me why??????

解决方案

Most likely reason is that you have the column names wrong. Try the indices, as someone suggested.

If you have ANY chance to get away from classic ASP, which has been unsupported for a decade and always sucked, do it. You are coding in an enclave that will wither and die.


这篇关于Asp和记录问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆