Get ready for BLACK FRIDAY shopping starting in

Forums

ASP

This topic is locked

From ASP VB Script to ASP Javascript

Posted 06 Feb 2004 04:24:23
1
has voted
06 Feb 2004 04:24:23 Emmanuel Frenehard posted:
Hi all,

I have been banging my head trying to translate a little piece of code from ASP VBscript to ASP Javascript without any luck.

Can someone shed some light into my tunnel?

Here is the delinquent code.

<pre id=code><font face=courier size=2 id=code>
&lt;%
if (cStr(Session("shipRegion")="" then
Session("shipRegion" = "0.30";
end if
if (cStr(Request("shipRegion")&lt;&gt;"" then
Session("shipRegion" = cStr(Request("shipRegion")
end if
%&gt;
</font id=code></pre id=code>

Many thanks.

Emmanuel

Replies

Replied 08 Feb 2004 09:51:52
08 Feb 2004 09:51:52 Emmanuel Frenehard replied:
I found the answer. Should anybody be interested
<pre id=code><font face=courier size=2 id=code>
&lt;%
if (String(Session("shipRegion")=="" {
Session("shipRegion" = "0.30";
}
if (String(Request("shipRegion")!= "" {
Session("shipRegion" = String(Request("shipRegion")
}
%&gt;
</font id=code></pre id=code>

Emmanuel

Reply to this topic