Click here to Skip to main content
15,892,809 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionregarding datalist Pin
rahuuul173-Nov-09 18:21
rahuuul173-Nov-09 18:21 
AnswerRe: regarding datalist Pin
Christian Graus3-Nov-09 18:23
protectorChristian Graus3-Nov-09 18:23 
GeneralRe: regarding datalist Pin
rahuuul173-Nov-09 18:28
rahuuul173-Nov-09 18:28 
GeneralRe: regarding datalist Pin
Christian Graus3-Nov-09 18:30
protectorChristian Graus3-Nov-09 18:30 
GeneralRe: regarding datalist Pin
_Damian S_3-Nov-09 18:52
professional_Damian S_3-Nov-09 18:52 
GeneralRe: regarding datalist Pin
Christian Graus3-Nov-09 18:55
protectorChristian Graus3-Nov-09 18:55 
GeneralRe: regarding datalist Pin
_Damian S_3-Nov-09 18:59
professional_Damian S_3-Nov-09 18:59 
QuestionItem cannot be found in the collection corresponding to the requested name or ordinal Pin
haleemasher3-Nov-09 17:56
haleemasher3-Nov-09 17:56 
I have a simple code in asp and VB which is used for search in a database (MS Access).All search are done but only one creates an error.When i search by a keyword it show this error. Error is
ADODB.Recordset error '800a0cc1'.Item cannot be found in the collection corresponding to the requested name or ordinal
<%

Dim Sqlbooks
dim checkkeyword, checkarticle
checkarticle="False"
checkkeyword="False"

Set dbGlobalWeb = Server.CreateObject("ADODB.Connection")
dbGlobalWeb.Open("BookDB")

Sqlbooks = "SELECT * FROM Booklist"
Sqlkeyword="SELECT * FROM Keyword11"
sqlarticle="SELECT * FROM Article"

If Request.Form("TypeSearch") = "Accno" Then
	Sqlbooks = Sqlbooks & " WHERE Acc_No LIKE '%" & Request.Form("DaInBox") & "%'"
End If

If Request.Form("TypeSearch") = "Callno" Then	
	Sqlbooks = Sqlbooks & " WHERE Call_No LIKE '%" & _
	    Request.Form("DaInBox") & "%'"
End If

If Request.Form("TypeSearch") = "Author" Then
	Sqlbooks = Sqlbooks & " WHERE Author LIKE '%" & _
	    Request.Form("DaInBox") & "%'"
End If

If Request.Form("TypeSearch") = "Title" Then
	Sqlbooks = Sqlbooks & " WHERE Title LIKE '%" & _
	    Request.Form("DaInBox") & "%'"
End If

If Request.Form("TypeSearch") = "ISBN" Then
	Sqlbooks = Sqlbooks & " WHERE ISBN LIKE '%" & _
	    Request.Form("DaInBox") & "%'"
End If

If Request.Form("TypeSearch") = "Publisher" Then
	Sqlbooks = Sqlbooks & " WHERE Publisher LIKE '%" & Request.Form("DaInBox") & "%'"
End If

If Request.Form("TypeSearch") = "Binding" Then
	Sqlbooks = Sqlbooks & " WHERE Binding LIKE '%" & Request.Form("DaInBox") & "%'"
End If

If Request.Form("TypeSearch") = "Subject" Then
	Sqlbooks = Sqlbooks & " WHERE Subject LIKE '%" & Request.Form("DaInBox") & "%'"
End If

If Request.Form("TypeSearch") = "Keyword1" Then
	checkkeyword="True"
	Sqlkeyword = Sqlkeyword & " WHERE Keyword1 LIKE '%" & Request.Form("DaInBox") & "%'"
End If

If Request.Form("TypeSearch") = "Article" Then
	checkarticle="True"
	Sqlarticle = Sqlarticle & " WHERE Article LIKE '%" & Request.Form("DaInBox") & "%'"
End If

Set rsGlobalWeb = Server.CreateObject("ADODB.Recordset")

If checkkeyword="True" then
rsGlobalWeb.Open Sqlkeyword, dbGlobalWeb, 3
 

<%End If
	  End If
End If

How i solve this error i check almost all the solution in google but not find any change. plz help
AnswerRe: Item cannot be found in the collection corresponding to the requested name or ordinal Pin
Christian Graus3-Nov-09 18:08
protectorChristian Graus3-Nov-09 18:08 
AnswerRe: Item cannot be found in the collection corresponding to the requested name or ordinal Pin
_Damian S_3-Nov-09 18:09
professional_Damian S_3-Nov-09 18:09 
GeneralRe: Item cannot be found in the collection corresponding to the requested name or ordinal Pin
Christian Graus3-Nov-09 18:19
protectorChristian Graus3-Nov-09 18:19 
GeneralRe: Item cannot be found in the collection corresponding to the requested name or ordinal Pin
_Damian S_3-Nov-09 18:58
professional_Damian S_3-Nov-09 18:58 
QuestionLarge data retrieval from SQL Server to ASP Pin
Naeem ul Haq3-Nov-09 14:36
Naeem ul Haq3-Nov-09 14:36 
AnswerRe: Large data retrieval from SQL Server to ASP Pin
_Damian S_3-Nov-09 14:41
professional_Damian S_3-Nov-09 14:41 
AnswerRe: Large data retrieval from SQL Server to ASP Pin
Christian Graus3-Nov-09 14:43
protectorChristian Graus3-Nov-09 14:43 
Question[Message Deleted] Pin
bahar.ghara3-Nov-09 8:53
bahar.ghara3-Nov-09 8:53 
AnswerRe: file uploade component Pin
Christian Graus3-Nov-09 8:58
protectorChristian Graus3-Nov-09 8:58 
General[Message Deleted] Pin
bahar.ghara3-Nov-09 9:12
bahar.ghara3-Nov-09 9:12 
GeneralRe: file uploade component PinPopular
Christian Graus3-Nov-09 9:17
protectorChristian Graus3-Nov-09 9:17 
AnswerRe: [Message Deleted] [modified] Pin
Christian Graus3-Nov-09 9:32
protectorChristian Graus3-Nov-09 9:32 
GeneralRe: [Message Deleted] Pin
Abhishek Sur3-Nov-09 11:54
professionalAbhishek Sur3-Nov-09 11:54 
GeneralRe: [Message Deleted] Pin
Christian Graus3-Nov-09 12:14
protectorChristian Graus3-Nov-09 12:14 
GeneralRe: [Message Deleted] Pin
Not Active3-Nov-09 12:33
mentorNot Active3-Nov-09 12:33 
GeneralRe: [Message Deleted] Pin
Abhishek Sur3-Nov-09 20:18
professionalAbhishek Sur3-Nov-09 20:18 
QuestionHelp with SQL Database and ASPX Page Pin
mavrik51503-Nov-09 6:35
mavrik51503-Nov-09 6:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.