Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > Visual Web Developer 2005
|
Visual Web Developer 2005 Discuss creating ASP.NET 2.0 sites with Microsoft's Visual Web Developer 2005. If your question is more specific to a piece of code than the Visual tool, see the ASP.NEt 2.0 forums instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Web Developer 2005 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 January 25th, 2011, 03:27 AM
Authorized User
Points: 410, Level: 7
Points: 410, Level: 7 Points: 410, Level: 7 Points: 410, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2009
Posts: 72
Thanks: 17
Thanked 0 Times in 0 Posts
Unhappy Error : System.Data.OleDb.OleDbException

Hi,

I have made a small login system, where Users can upload their files.And administrator can Download the files uploaded by users.

I have used Access as Database.

I am getting the following Error :

System.Data.OleDb.OleDbException: System resource exceeded.

Following is the code for my Login Page :-

If LoginName.Text.ToLower = "administrator" Then
Dim str, ps As String
str = "Select Password from Faculty_Login Where UserName='administrator'"
conn.Open()
Dim comm As New OleDbCommand(str, conn)

ps = Convert.ToString(comm.ExecuteScalar)
conn.Close()

If Password.Text = ps Then
Session("login") = "Yes"
Response.Redirect("AdminActive.aspx")
Else
Msg.Text = "Incorrect Login Name or Password."
End If
Else

If UserCheck(LoginName.Text, Password.Text) Then
' User Available
' do your coding
Session("login") = "Yes"
Response.Redirect("FacActive.aspx?un=" + LoginName.Text)
Else
' User Not Available
' do your coding
Msg.Text = "Incorrect Login Name or Password."
End If
End If


How to solve this error?

Thank You....!!





Similar Threads
Thread Thread Starter Forum Replies Last Post
System.Data.OleDb.OleDbException: No value given f tjgrindsted ASP.NET 2.0 Basics 0 January 24th, 2007 07:25 AM
syntax error?<%@ Import Namespace="System.Data" %> fjm9 ASP.NET 1.0 and 1.1 Basics 2 January 16th, 2007 11:51 AM
Syntax error? <%@ Import Namespace="System.Data" % fjm9 C# 1 January 16th, 2007 09:17 AM
An unhandled exception of type 'System.Data.OleDb. Harvey_swift VB Databases Basics 1 May 30th, 2006 12:57 PM
System.Data.OleDb.OleDbException: Expected query n Thac Classic ASP Databases 0 July 3rd, 2005 01:48 PM





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