易截截图软件、单文件、免安装、纯绿色、仅160KB

asp 大问题 - Web 开发 / vbScript

如果只有用户名和密码就能达到想要的效果,而如果加了权限字段即E_competence,就一直提示错误,进不去主界面,调试代码如下,还没有选择的,大家帮忙看看啊,谢谢大家了~~~解决了加分
呵呵,太着急了,忘了付代码了。代码如下,conn在数据库连接文件中已经定义了的
<%
 dim rs
 dim Y_name,E_password,E_competence,sql
 Y_name=request.form("Y_name")
 E_password=request.form("E_password")
 E_competence=request.form("E_competence")
 if Y_name="" or E_password=""then
 response.write("<script language='javascript'>alert('用户名或秘密不能为空!');location.href='index.htm';</script>")
 response.end
 else 
 Set rs=Server.CreateObject("ADODB.Recordset")
 sql="select * from yonghuxinxi where Y_name ='"&Y_name&"'and E_password="&E_password&"and E_competence='"&E_competence&"'"
 rs.open sql,conn,1,3
 if rs.eof then 
 response.write("<script language='javascript'>alert('用户名或秘密错误!');location.href='index.htm';</script>")
 else 
 response.write("<script language='javascript'>alert('E_competence');location.href='index.htm';</script>")
 
 end if
 end if
 conn.execute sql<


相关问答:

Asp+sql server问题 - Web 开发 / ASP

我一个项目,有个插入操作,具体是这样的:
我有进货信息表。在出货时选择相应的进货信息,输入数量,选择部门后,点保存按钮,由于网络延时,点一下没有反映,于是用户就又点一下,导致一次插入了两条记录:
例: ......

怎样将ASP程序转换为.NET程序 ? - .NET技术 / ASP.NET

怎样将ASP程序转换为.NET程序 ?
找个全才翻译。

手动去写
感觉写过asp的,来写asp.net,上手应该快点。
更能理解asp.net的一些内部技术
asp.net都被封装了

我是做.Net的,对ASP一直没接触到,很陌生。
公 ......

asp 翻页怎么实现? - .NET技术 / ASP.NET

asp 翻页怎么实现?
分页可使用分页控件如aspnetpager

没找到此控件!!!!!

第三方组件 需要在网上去下载 http://www.webdiyer.com/Controls/AspNetPager/Downloads

不用控件 怎么做啊!

hehe

不 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号