|
 |
asp_databases thread: ASP and Netscape
Message #1 by "Phil Perks" <philp@w...> on Sat, 27 May 2000 11:28:45
|
|
-----Original Message-----
From: Narinder Bains [mailto:NBains@c...]
Sent: 26 May 2000 15:06
To: support@w...
Subject: ASP and Netscape
Dear Support
I've been using ASP for Databases and developed a site using JavaScript &
ASP.
It works fine in IE but I'm having problems with ASP in Netscape.
I am comparing a database integer field with a string variable in an If
statement.
I have tried:
if DatabaseNumberField = StringVariable
and
if DatabaseNumberField = CLng(StringVariable)
and
if CStr(DatabaseNumberField) = StringVariable
and
AnotherStringVariable = DatabaseNumberField
if AnotherStringVariable = StringVariable
and
AnotherStringVariable = CStr(DatabaseNumberField)
if AnotherStringVariable = StringVariable
and finally I have tried a combination of server.URLEncode.
But I cannot get a True with the If.
Any Ideas
Narinder.
Message #2 by "Ruud Voigt" <RuudVoigt@w...> on Sun, 28 May 2000 13:40:31 +0200
|
|
try response writing the StringVariable value
to see what it is. This way you can determine
what the if argument should be.
-----Original Message-----
From: Phil Perks [mailto:philp@w...]
Sent: Saturday, May 27, 2000 11:29 AM
To: ASP Databases
Subject: [asp_databases] ASP and Netscape
-----Original Message-----
From: Narinder Bains [mailto:NBains@c...]
Sent: 26 May 2000 15:06
To: support@w...
Subject: ASP and Netscape
Dear Support
I've been using ASP for Databases and developed a site using JavaScript &
ASP.
It works fine in IE but I'm having problems with ASP in Netscape.
I am comparing a database integer field with a string variable in an If
statement.
I have tried:
if DatabaseNumberField = StringVariable
and
if DatabaseNumberField = CLng(StringVariable)
and
if CStr(DatabaseNumberField) = StringVariable
and
AnotherStringVariable = DatabaseNumberField
if AnotherStringVariable = StringVariable
and
AnotherStringVariable = CStr(DatabaseNumberField)
if AnotherStringVariable = StringVariable
and finally I have tried a combination of server.URLEncode.
But I cannot get a True with the If.
Any Ideas
Narinder.
---
Wrox Professional Wireless Developer Conference, Amsterdam, July 10-12.
Covering application of WAP, XML, ASP, Java and C++ to wireless computing,
choose from 40+ technical sessions delivered by industry experts:
http://www.wroxconferences.com/ConferenceHome.asp?ConfID=9
---
You are currently subscribed to asp_databases
Message #3 by <Chris@I...> on Tue, 30 May 2000 10:32:01 -0700
|
|
I think your problem is simple. Microsoft and Netscape have different
philosophies regarding the default property which is Value.
Try DatabaseNumberField.Value = StringVariable
Notice that we are explicitly asking for the Value property of the database
field (which I assume is a recordset field...) Please reply to the mailing
list if this is correct or not, so we know.
> -----Original Message-----
> From: Phil Perks [mailto:philp@w...]
> Sent: Saturday, May 27, 2000 4:29 AM
> To: ASP Databases
> Subject: [asp_databases] ASP and Netscape
>
>
> -----Original Message-----
> From: Narinder Bains [mailto:NBains@c...]
> Sent: 26 May 2000 15:06
> To: support@w...
> Subject: ASP and Netscape
>
>
> Dear Support
>
> I've been using ASP for Databases and developed a site using
> JavaScript &
> ASP.
>
> It works fine in IE but I'm having problems with ASP in Netscape.
>
> I am comparing a database integer field with a string
> variable in an If
> statement.
> I have tried:
>
> if DatabaseNumberField = StringVariable
> and
> if DatabaseNumberField = CLng(StringVariable)
> and
> if CStr(DatabaseNumberField) = StringVariable
> and
> AnotherStringVariable = DatabaseNumberField
> if AnotherStringVariable = StringVariable
> and
> AnotherStringVariable = CStr(DatabaseNumberField)
> if AnotherStringVariable = StringVariable
>
> and finally I have tried a combination of server.URLEncode.
>
> But I cannot get a True with the If.
>
> Any Ideas
>
> Narinder.
>
>
|
|
 |