Guest_imported
New member
- Jan 1, 1970
- 0
i get this error whenever i successfully login. I am able to pass variable to the 2nd ASP page. But i cannot extract the data from the database and display the data in the WELCOME Pages. And i get the following error:
ADODB.Recordset error '800a0cc1'
Item cannot be found in the collection corresponding to the requested name or ordinal.
/time.asp, line 44
And my code for the 2nd ASP pages is :
<%
Dim h, name
Dim DataConn, ConnString
Dim Rs, SQL
SQL= "select Name from info "
Set Rs=Server.CreateObject ("ADODB.Recordset"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
If h < 12 then
Response.Write ("<p>"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
response.write("Good Morning!" & Rs.Fields ("NameID"
)("Name"
)
response.write("<p>You have logged in!</p>"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Response.Write ("</p><p>"
elseif h <18 then
Response.Write ("<p>"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
response.write("Good Afternoon!," & Rs.Fields ("NameID"
)("Name"
)
response.write("<p>You have logged in!</p>"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Response.Write ("</p><p>"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
else
Response.Write ("<p>"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
line 44response.write("Good Night!," & Rs.Fields ("NameID"
)
response.write("<p>You have logged in!</p>"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Response.Write ("</p><p>"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Set Rs = Nothing
End if%>
And i do not know what went wrong with the statement.
Thanks as lot....:-D
ADODB.Recordset error '800a0cc1'
Item cannot be found in the collection corresponding to the requested name or ordinal.
/time.asp, line 44
And my code for the 2nd ASP pages is :
<%
Dim h, name
Dim DataConn, ConnString
Dim Rs, SQL
SQL= "select Name from info "
Set Rs=Server.CreateObject ("ADODB.Recordset"
If h < 12 then
Response.Write ("<p>"
response.write("Good Morning!" & Rs.Fields ("NameID"
response.write("<p>You have logged in!</p>"
Response.Write ("</p><p>"
elseif h <18 then
Response.Write ("<p>"
response.write("Good Afternoon!," & Rs.Fields ("NameID"
response.write("<p>You have logged in!</p>"
Response.Write ("</p><p>"
else
Response.Write ("<p>"
line 44response.write("Good Night!," & Rs.Fields ("NameID"
response.write("<p>You have logged in!</p>"
Response.Write ("</p><p>"
Set Rs = Nothing
End if%>
And i do not know what went wrong with the statement.
Thanks as lot....:-D