I have the following line in my ASP code.
If UCase(Trim(CStr (oRset("Suburb" ))))=UCase(Trim (CStr(Request.Q ueryString("lin k"))))
then
etc etc
end if
The problem is that although the Suburb and the link variables match
often, it only works when the variable has been pulled from an Access
database where I entered the data directly into Access through the
Access interface. Where I have entered the data through the web
interface, it ignores it as if it does not match. I have added CStr,
Trim and Ucase to try to get it to see it as the same text but it
still fails. Can anyone help. ASP 6.0 and Access 2003. Thanks 5 2496
<%
Dim strDBText, strQuery
strDBText = rs("ThisField" )
strQuery = request.queryst ring("ThisQS")
if ucase(strDBText ) = ucase(strQuery) then
Response.write "Tis a match"
else
Response.Write "Hmm, somethings gone wrong, or it doesn't match"
end if
%>
--
Regards
Steven Burn
Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
John <jo**@hokykoky. com> wrote in message
news:5a******** *************** ***@posting.goo gle.com... I have the following line in my ASP code.
If
UCase(Trim(CStr (oRset("Suburb" ))))=UCase(Trim (CStr(Request.Q ueryString("lin k
")))) then
etc etc
end if
The problem is that although the Suburb and the link variables match often, it only works when the variable has been pulled from an Access database where I entered the data directly into Access through the Access interface. Where I have entered the data through the web interface, it ignores it as if it does not match. I have added CStr, Trim and Ucase to try to get it to see it as the same text but it still fails. Can anyone help. ASP 6.0 and Access 2003. Thanks
Hi Steven
Thanks for the code, but it just confirms the problem. Even though in
some cases the contents of "ThisField" looks identical to the contents
of "ThisQS", it still ignores it and considers it to be different.
Everything new I add to the Acesss Database where the conditions
match, it is ignored. I even tried it with SQL query and same thing.
Very weird.
strSQL = "SELECT * FROM BIBS WHERE Suburb ='" &
Request.QuerySt ring("link") & "' ORDER BY ID DESC"
Could it be somthing in the Access Database?
"Steven Burn" <nobody@PVT_i t-mate.co.uk> wrote in message news:<#W******* ******@TK2MSFTN GP10.phx.gbl>.. . <% Dim strDBText, strQuery strDBText = rs("ThisField" ) strQuery = request.queryst ring("ThisQS")
if ucase(strDBText ) = ucase(strQuery) then Response.write "Tis a match" else Response.Write "Hmm, somethings gone wrong, or it doesn't match" end if
%>
-- Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
Disclaimer: I know I'm probably wrong, I just like taking part ;o)
John <jo**@hokykoky. com> wrote in message news:5a******** *************** ***@posting.goo gle.com... I have the following line in my ASP code.
If UCase(Trim(CStr (oRset("Suburb" ))))=UCase(Trim (CStr(Request.Q ueryString("lin k ")))) then
etc etc
end if
The problem is that although the Suburb and the link variables match often, it only works when the variable has been pulled from an Access database where I entered the data directly into Access through the Access interface. Where I have entered the data through the web interface, it ignores it as if it does not match. I have added CStr, Trim and Ucase to try to get it to see it as the same text but it still fails. Can anyone help. ASP 6.0 and Access 2003. Thanks
What formatting have you got on this field in the DB?
--
Regards
Steven Burn
Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
John <jo**@hokykoky. com> wrote in message
news:5a******** *************** **@posting.goog le.com... Hi Steven
Thanks for the code, but it just confirms the problem. Even though in some cases the contents of "ThisField" looks identical to the contents of "ThisQS", it still ignores it and considers it to be different. Everything new I add to the Acesss Database where the conditions match, it is ignored. I even tried it with SQL query and same thing. Very weird.
strSQL = "SELECT * FROM BIBS WHERE Suburb ='" & Request.QuerySt ring("link") & "' ORDER BY ID DESC"
Could it be somthing in the Access Database?
"Steven Burn" <nobody@PVT_i t-mate.co.uk> wrote in message
news:<#W******* ******@TK2MSFTN GP10.phx.gbl>.. . <% Dim strDBText, strQuery strDBText = rs("ThisField" ) strQuery = request.queryst ring("ThisQS")
if ucase(strDBText ) = ucase(strQuery) then Response.write "Tis a match" else Response.Write "Hmm, somethings gone wrong, or it doesn't
match" end if
%>
-- Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
Disclaimer: I know I'm probably wrong, I just like taking part ;o)
John <jo**@hokykoky. com> wrote in message news:5a******** *************** ***@posting.goo gle.com... I have the following line in my ASP code.
If
UCase(Trim(CStr (oRset("Suburb" ))))=UCase(Trim (CStr(Request.Q ueryString("lin k ")))) then
etc etc
end if
The problem is that although the Suburb and the link variables match often, it only works when the variable has been pulled from an Access database where I entered the data directly into Access through the Access interface. Where I have entered the data through the web interface, it ignores it as if it does not match. I have added CStr, Trim and Ucase to try to get it to see it as the same text but it still fails. Can anyone help. ASP 6.0 and Access 2003. Thanks
It is a text box - 50chrs - it is also set up as a replica, could that be an issue?
"Steven Burn" <nobody@PVT_i t-mate.co.uk> wrote in message news:<eK******* *******@TK2MSFT NGP10.phx.gbl>. .. What formatting have you got on this field in the DB?
-- Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
Disclaimer: I know I'm probably wrong, I just like taking part ;o)
John <jo**@hokykoky. com> wrote in message news:5a******** *************** **@posting.goog le.com... Hi Steven
Thanks for the code, but it just confirms the problem. Even though in some cases the contents of "ThisField" looks identical to the contents of "ThisQS", it still ignores it and considers it to be different. Everything new I add to the Acesss Database where the conditions match, it is ignored. I even tried it with SQL query and same thing. Very weird.
strSQL = "SELECT * FROM BIBS WHERE Suburb ='" & Request.QuerySt ring("link") & "' ORDER BY ID DESC"
Could it be somthing in the Access Database?
"Steven Burn" <nobody@PVT_i t-mate.co.uk> wrote in message news:<#W******* ******@TK2MSFTN GP10.phx.gbl>.. . <% Dim strDBText, strQuery strDBText = rs("ThisField" ) strQuery = request.queryst ring("ThisQS")
if ucase(strDBText ) = ucase(strQuery) then Response.write "Tis a match" else Response.Write "Hmm, somethings gone wrong, or it doesn't match" end if
%>
-- Regards
Steven Burn Ur I.T. Mate Group www.it-mate.co.uk
Keeping it FREE!
Disclaimer: I know I'm probably wrong, I just like taking part ;o)
John <jo**@hokykoky. com> wrote in message news:5a******** *************** ***@posting.goo gle.com... > I have the following line in my ASP code. > > > If UCase(Trim(CStr (oRset("Suburb" ))))=UCase(Trim (CStr(Request.Q ueryString("lin k ")))) > then > > etc etc > > end if > > > The problem is that although the Suburb and the link variables match > often, it only works when the variable has been pulled from an Access > database where I entered the data directly into Access through the > Access interface. Where I have entered the data through the web > interface, it ignores it as if it does not match. I have added CStr, > Trim and Ucase to try to get it to see it as the same text but it > still fails. Can anyone help. ASP 6.0 and Access 2003. Thanks
John wrote: I have the following line in my ASP code.
If
UCase(Trim(CStr (oRset("Suburb" ))))=UCase(Trim (CStr(Request.Q ueryString("lin k
")))) then
etc etc
end if
The problem is that although the Suburb and the link variables match often, it only works when the variable has been pulled from an Access database where I entered the data directly into Access through the Access interface. Where I have entered the data through the web interface, it ignores it as if it does not match. I have added CStr, Trim and Ucase to try to get it to see it as the same text but it still fails. Can anyone help. ASP 6.0 and Access 2003. Thanks
Show us the result of
response.write oRset("Suburb") & "<BR>"
response.write Request.QuerySt ring("link")
Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM" This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Max |
last post by:
Hello. This is the first time I've posted to a newsgroup, and I do
this because I'm in desperate need of help.
I'm working a user management system, and when I activate a user that
has registered to my system, the current admin user logged in gets
logged out.
I can't seem to work out how - I can't even trace back where some of
the variables are coming from (for example, the "ref" part of the
Request.QueryString method).
Could someone...
|
by: mahsa |
last post by:
Hi have have some link like thi
http://x.com/Shoppingcart.aspx?pn=ps50210&qty_ps50210=1&pn=excel&qty_excel=1&pn=l4504000&qty_l4504000=1&sku=PS50210&cat=laminate&action=updat
now I want to request the dat
I use this code in as
<%For Each strPartNo In Request.QueryString("pn"
lngQty = Request.QueryString("qty_" & strPartNo
strPartNo = LCase(strPartNo
Response.Write("strPartNo"& strPartNo& lngQty
Next
%
|
by: Guoqi Zheng |
last post by:
On my application, I need to have different action based on the pass in
query string. When the query string is not presented, I try to use
If request.querystring("id") ="" THEN ......
This is what I did in trational asp, however if I did abov in ASP.NET, I
always got an error of "Object reference not set to an instance of an
object. "
How should I solve the problem?
|
by: Tim::.. |
last post by:
Can someone please tell me how I do a request.querystring in ASP.NET??? I am
trying to upgrade an ASP app to ASP.NET and improve it at the same time but
I'm not sure how I use this querystring...
EG: I have a content management system
I want a user to be able to view only his documents according to the
logon... This I think I can work out The problem is when a user clicks on a
document I want it to open in the editor. In ASP I did...
|
by: Ammar |
last post by:
Dear All,
I'm facing a small problem.
I have a portal web site, that contains articles, for each article, the end
user can send a comment about the article.
The problem is:
I the comment length is more that 1249 bytes, then the progress bar of the
browser will move too slow and then displaying that the page not found!!!!
If the message is less than or equal to 1249 then no problem.
| |
by: SevDer |
last post by:
Hi I have a class library that needs to download the HTML in a specific page
of ours with provided querystring.
When I open this URL with any browser, it loads fine. When I do WebRequest
from Web Project it is again fine.
However whenever I do this request from this class library, it fails.
I put every kind of user permission to the actual folder, and through
inetmgr. Right now everyone has full control.
But still I got the problem.
|
by: Arvan |
last post by:
there is 3 links to page default.aspx,and each one has a querystring,like
a=1, b=1 ,c=1.
problem is how do i ensure the name of querystring!
how do?
|
by: =?Utf-8?B?QVRT?= |
last post by:
PRB JavaScript in ASP with Request.Form
Please help,
I'm having a problem with JavaScript in ASP, where the ASP page crashes when
I try to determine if data was posted from a FORM or through a QueryString.
Where, if the data came through via a FORM, I want to use it 1st, but if not,
to then try using it from the QueryString. Basically, the problem boils down
to using "toString()" on Request.Form("NAME") and Request.QueryString("NAME")...
|
by: =?Utf-8?B?QVRT?= |
last post by:
HOWTO Make CStr for JavaScript on ASP w/ Request.Form and QueryString
In ASP, Request.Form and Request.QueryString return objects that do not
support "toString", or any JavaScript string operation on parameters not
passed.
Example: Make a TST.asp and post to it as TST.asp?STATE=TEST
<%@ Language=JavaScript %>
<%
|
by: Doogie |
last post by:
Hi,
I'm writing Javascript code to parse out a query string. I want to
handle the case where a parameter value may not be sent.
So consider a parameter called "State". If the user doesn't pass that
in if I do this:
var state = <%=Request.QueryString%>
This returns an undefined object that I can't seem to do any checks
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |