ASP

本类阅读TOP10

·asp常用数据库连接方法和技巧
·无组件生成BMP验证码
·一些常用的辅助代码 (网络收藏)
·JavaScript实现的数据表格:冻结列、调整列宽和客户端排序
·VisualStudio.NET_2003及其 MSDN 下载地址
·ASP模拟MVC模式编程
·图片以二进制流输出到网页
·MD5加密算法 ASP版
·ASP.NET编程中的十大技巧
·改进 ASP 的字符串处理性能

分类导航
VC语言Delphi
VB语言ASP
PerlJava
Script数据库
其他语言游戏开发
文件格式网站制作
软件工程.NET开发
asp

作者:未知 来源:月光软件站 加入时间:2005-2-28 月光软件站

<!--#include file="conn.asp"-->
<%
dim rs
dim username
username=request.form("username")
session("username")=username
set rs=Server.CreateObject("Adodb.Recordset")
rs.open "select 用户名,问题  from User where 用户名='"&username&"'",conn,1,1

If rs.eof Then
response.write "没有该用户名,请注册新用户!!! <br><br>"
response.write "<a href='login.asp'>返回</a>" 
response.end
End If
%>
<html>
<head>
<title>忘记密码——第二步</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="inc/style1.css" type="text/css">
</head>

<BODY marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">

<table width="758" border="0" cellspacing="1" cellpadding="1" align="center" height="30"> 
<tr> <td><BR><BR><BR><BR></td></tr> </table><TABLE WIDTH="758" BORDER="0" CELLSPACING="2" CELLPADDING="2" ALIGN="CENTER"><TR><TD HEIGHT="63"><DIV ALIGN="CENTER"><B><FONT SIZE="2">密码恢复第二步: 
请输入你的密码提示问题答案<BR><BR>你的密码提示问题:<%=rs("问题")%></FONT></B><BR><BR><form action="getpass2.asp" method="post" name="form"><input type=text name="ok" SIZE="20"> 
<input type=submit value="下一步"></FORM></DIV></TD></TR></TABLE><p> </p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><br>
</p>
<p>

</body>
</html>
|其中这句话:rs.open "select 用户名,问题 from User where 用户名='"&username&"'",conn,1,1 2个1表示?本文测试如下:本页无法显示
试图访问的网页出现问题,无法显示。
--------------------------------------------------------------------------------
请尝试以下方法:
单击 刷新按钮或者梢候再试。
打开 localhost 主页,然后查找与所需信息相关的链接。 
HTTP 500.100 - 内部服务器错误 - ASP 错误
Internet 信息服务

 

--------------------------------------------------------------------------------

技术信息(适用于支持人员)

错误类型:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E21)
/hyoem/getpass1.asp, 第 8 行

 


浏览器类型:
Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; .NET CLR 1.1.4322)

 

页:
POST 23 bytes to /hyoem/getpass1.asp

 

POST 数据:
username=Administrators

 

时间:
2004年11月13日, 19:59:57

 


详细信息:
Microsoft 支持




相关文章

相关软件