ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 23rd, 2003, 08:04 AM
williamcrawley williamcrawley is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: uk
Posts: 91 williamcrawley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
type mismatch

Hi All,

i have this code in the global section of an asp page:

%>

<!-- #include file="includes/DBOpen.inc" -->
<!-- #include file="includes/ReadData.inc" -->

<%
if Request("txtUsername") <> "" then

strSQL = "SELECT Name, Password FROM Users WHERE" & _
" Name='" & request("txtUsername") & "' AND Password='" & request("txtPassword") & "'"

Set rsLogin = readData(strSQL)

this piece of code works fine. My problem is that if I have the same code layout in the Head Section on another page, I get a typemismatch error on the readdata function.

the DBOpen.inc file holds the connection object and the ReadData.inc file hold's the request to return a recordset. Even when I remove the code from the .inc files and place it directly in the page, I get the same error. has anyone else hit a similar problem.

thanks

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > type mismatch


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT