Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: ASP Assistance

RE: ASP Assistance

From: Johan Locke_at_i-Commerce <Locke_at_i-Commerce>
Date: Fri, 20 Apr 2001 06:35:49 -0700
Message-ID: <F001.002EDBBC.20010420063101@fatcity.com>

Hi

How about:



1 UserIP = Request.ServerVariable("REMOTE_HOST") 2 IPCheck = Left(UserIP,7)
3 If IPCheck = "192.168" Then
4 parser.setSingleSessionField "My_Template", "template_i" 5 Else
6 parser.setSingleSessionField "My_Template", "template_o" 7 End If

-----Original Message-----
Sent: Friday, April 20, 2001 3:50 PM
To: Multiple recipients of list ORACLE-L

I apologize for being off topic here, but I am stuck.

I have been struggling for 3 days on what I believe is a simple script.

Here is the piece of code which is not functioning as I require:

1 UserIP = Request.ServerVariable("REMOTE_HOST") 2 IPCheck = Left(UserIP,7)
3 If UserIP = "192.168" Then
4 parser.setSingleSessionField "My_Template", "template_i" 5 Else
6 parser.setSingleSessionField "My_Template", "template_o" 7 End If

If I comment out all but line 4, I can verify that My_Template is set to 'template_i'. If I comment out all but line 6, I can verify that My_Template is set to 'template_o'. If I run with now lines commented, My_Template winds up blank.

What am I doing wrong?
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: William Rogge
  INET: William_Rogge_at_voltek.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Johan Locke_at_i-Commerce
  INET: Johan.Locke_at_za.didata.com
Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Fri Apr 20 2001 - 08:35:49 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US