Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 25th, 2003, 10:04 PM
Registered User
 
Join Date: Jun 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to tamgo
Default Why my asp page error

conn.asp
<%
  Dim objConn
  Set objConn = Server.CreateObject("ADODB.Connection")
  objConn.Open "Provider=Microsoft.Jet.OLEDB.4.0; " & _
               "Data Source= D:\Inetpub\wwwroot\asp\22\222.mdb"
%>

input.asp
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body>
<FORM name=form action="sendmail.asp" method=post>
<TABLE class=v15 border=0>
  <TBODY>
    <TR>
      <TD class=v15 noWrap align=right>ÐÕÃû£º</TD>
      <TD class=v15>
        <INPUT maxLength=40 name=name>
        </TD>
    </TR>
  </TBODY>
</TABLE>

<INPUT type=submit value=Ìá½» name="Send">

</FORM>
</body>
</html>

sendmail.asp


<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body>
done!
<% dim rsusers
set rsusers = server.createobject("adodb.recordset")
rsusers.open "table"
rsusers("name") = request.form("name")
rsusers.update
%>
</body>
</html>
 
Old June 30th, 2003, 03:32 AM
arp arp is offline
Authorized User
 
Join Date: Jun 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi!!

I think you are not providing connection object to 'open' method of recordset in sendmail.asp

rsusers.open "table" should be

rsusers.open "table",objConn,1,2





Similar Threads
Thread Thread Starter Forum Replies Last Post
error displaying asp page tanca Classic ASP Basics 5 November 28th, 2007 02:29 AM
error in asp page alirezaaali Classic ASP Databases 2 August 17th, 2006 12:18 AM
ASP Page Error **NEED HELP** APD189 Classic ASP Databases 0 January 10th, 2006 07:25 PM
Asp page error hamed8esi Classic ASP Databases 2 March 8th, 2004 11:42 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.