asp中连接access的问题,急啊 !!!
<b>我做了一个注册网页,用asp连接access完成注册。在我调试的时候,没有报错,但是不管在注册表单中添什么,数据库都无动于衷,没有一点变化,我又先在数据库中手工输入了一条信息,然后以相同用户名注册,网页也没有告知用户名已注册,拜托那位高人指点一下,在下谢谢了。 </b>
<b>1、连接数据库的代码 </b>
<%
On Error Resume Next
Dim sConnString,oConn,sDBPath
sDBPath="\data\sxfj.mdb"
sConnString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(sDBPath)
Set oConn=Server.CreateObject("ADODB.Connection")
oConn.open sConnString
If Err then
Err.Cleal
Response.Write("数据库连接出现错误: </br>")
Response.Write(Err.Description)
Response.End
End If
%>
2、填写表单的页面代码
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>注册 </title>
</head>
<body>
<!--#include file="top.html"-->
<center>
<%=request.QueryString("msg")%>
</center>
相关问答:
Imports System.ComponentModel
Imports System.Web.UI
Imports System.Web.UI.Design
Imports System.Web.UI.WebControls
Namespace CBDAspNet.WebControls.HTML
''' <summary>
'' ......
调整了这里,那里出问题。
有没有什么好的方法,像调整对话框一样????
找个专门做页面的
在dreamweaver里调。。。也可以直接控制HTML代码
确实痛苦 感同身受呀
哈哈 坚决路过。
用DW吧,VS搞设计 ......
A页面
<table width="200" border="1">
<tr>
<td>1</td>
<td>3</td>
<td><!--#include/top.html#-- ......
<?xml version="1.0"?>
<root>
<status>433</status>
<msg>这个是汉字</msg>
<serialno>123</serialno>
</root>
如何用ASP读取 status值 ......
3个radioButton
一个Button
一个label
C# code:
protected void Button1_Click(object sender, EventArgs e)
{
string str = null;
RadioButton rdo=(RadioButton)sender;
......