Forums
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>
<%
if (cStr(Session("shipRegion")="" then
Session("shipRegion" = "0.30";
end if
if (cStr(Request("shipRegion")<>"" then
Session("shipRegion" = cStr(Request("shipRegion")
end if
%>
</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>
<%
if (String(Session("shipRegion")=="" {
Session("shipRegion" = "0.30";
}
if (String(Request("shipRegion")!= "" {
Session("shipRegion" = String(Request("shipRegion")
}
%>
</font id=code></pre id=code>
Emmanuel
<pre id=code><font face=courier size=2 id=code>
<%
if (String(Session("shipRegion")=="" {
Session("shipRegion" = "0.30";
}
if (String(Request("shipRegion")!= "" {
Session("shipRegion" = String(Request("shipRegion")
}
%>
</font id=code></pre id=code>
Emmanuel