请耐心看下,ASP 用户登录问题 - Web 开发 / ASP
我输入用户名和密码是错误的,按提交后什么错误提示也没有直接刷新了,我怀疑是根本没去数据库扫描啊!
conn.asp里我写的是
<%
set conn=server.CreateObject("ADODB.Connection")
connstr="Provider=SQLOLEDB;Data Source=(local);Initial Catalog=test;User ID=sa;Password=4184085;"
conn.Open connstr
%>
----------------------------login.asp-------------------------------------------
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script language="javascript">
function check()
{
if(document.form1.student.value=="")
{
alert("请输入用户名");
document.form1.student.focus();
return false;
}
if(document.form1.pwd.value=="")
{
alert("请输入密码");
document.form1.pwd.focus();
return false;
}
document.form1.ctype.value="add";
document.form1.submit();
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>主页</title>
<style type="text/css">
#apDiv1 {
position:absolute;
w
相关问答:
function CheckOpwd(){//验证用户名
var pwd=document.all.txtOpwd;
var div1=document.getElementById("divPwd");
if (pwd.value=="")
{
......
万网的服务器支持伪静态的,直接用rewrite在web.config文件写规则,也不用安装组件就可以实现伪静态,但是在时代互联服务器就用不了了,咨询它的客服,他说他们服务器(基本型C)不支持伪静态的.请问一下各位我该用什么方法 ......
各位大侠,我学习的是ASP.NET,想知道相关技术有哪些,就像JAVA EE中有struct sping jsp severlet 等,ASP.NET还有哪些些相关技术。
http://topic.csdn.net/u/20090914/21/af27de99-f0f3-4cfd-9379-13764f8ec6b1.ht ......
C# code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Runtime.InteropServices;
nam ......
asp 翻页怎么实现?
分页可使用分页控件如aspnetpager
没找到此控件!!!!!
第三方组件 需要在网上去下载 http://www.webdiyer.com/Controls/AspNetPager/Downloads
不用控件 怎么做啊!
hehe
不 ......