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 April 23rd, 2006, 07:42 AM
Registered User
 
Join Date: Apr 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rizoriz
Default User Authentication Err

Error Type:
Microsoft JET Database Engine (0x80040E10)
No value given for one or more required parameters.
/medi/includes/configdb.asp, line 37

My Code: 1. admin.asp

<%
UserID = Request.Form("UserID")
Password = Request.Form("Password")

OpenConnection
    OpenRecorDSet("SELECT * FROM EmpUser where UserName = "& UserID &";")


if UserID = rs("UserName") and Password = rs1("Password") then
    Session("UserLevel") = "Admin"
    else
    server.Transfer("default.asp")
end if

    CloseRecordSet
    CloseConnection
%>

2. Configdb.asp

<% myStart = timer %>
<%
Dim DSN_NAME,DSN_USER,DSN_PASS,Conn,rs, DSN_NAME_USERS, DSN_NAME_CHEF, rs1, rs2, rsb

DSN_NAME = "Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source="&Server.MapPath("data\db1.mdb")&";Jet OLEDB:System database='';Jet OLEDB:Database Password=''"

Sub OpenConnection
    Set Conn = Server.CreateObject("ADODB.Connection")
    Conn.ConnectionTimeout = 15
    Conn.CommandTimeout = 30
    Conn.Open DSN_NAME, DSN_USER, DSN_PASS
End Sub

Sub OpenRecordset(sqry)
    Set rs = Server.CreateObject("ADODB.Recordset")
'sql rs.Open sqry, Conn, adOpenForwardOnly, adLockReadOnly
    rs.CursorLocation = 3 'adUseClient
    rs.CursorType = 3 'adOpenStatic
    rs.ActiveConnection = Conn
    rs.Open sqry, Conn
End Sub
%>



rizoriz





Similar Threads
Thread Thread Starter Forum Replies Last Post
user authentication pablohoney Classic ASP Basics 0 October 1st, 2006 11:07 PM
User Authentication problem asif_sharif ASP.NET 1.0 and 1.1 Professional 1 January 1st, 2006 04:48 PM
User Authentication problem asif_sharif ASP.NET 1.0 and 1.1 Professional 1 January 1st, 2006 04:48 PM
User authentication problems bobbby Dreamweaver (all versions) 4 September 28th, 2004 12:46 AM
User Authentication gmoney060 BOOK: Beginning ASP 3.0 1 June 16th, 2004 07:24 AM





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