[Javascript] Request.querystring type mismatch problem
Micha Schopman
Micha.Schopman at modernmedia.nl
Fri Oct 7 06:27:00 CDT 2005
Watch your code carefully,
You are doing an assignment, not a comparison.
Micha Schopman
Project Manager
Modern Media, Databankweg 12 M, 3821 AL Amersfoort
Tel 033-4535377, Fax 033-4535388
KvK Amersfoort 39081679, Rabo 39.48.05.380
------------------------------------------------------------------------
------------------------------------------------------------------------
-----
Modern Media, Making You Interact Smarter. Onze oplossingen verbeteren
de interactie met uw doelgroep.
Wilt u meer omzet, lagere kosten of een beter service niveau? Voor meer
informatie zie www.modernmedia.nl
------------------------------------------------------------------------
------------------------------------------------------------------------
-----
________________________________
From: javascript-bounces at LaTech.edu
[mailto:javascript-bounces at LaTech.edu] On Behalf Of Jai Sankar N
Sent: vrijdag 7 oktober 2005 10:36
To: javascript at LaTech.edu
Subject: [Javascript] Request.querystring type mismatch problem
Hi all
I'm passing information from one asp page to another asp page. it is
always fine. but i get type mismatch error. actully i'm passing number
but it gives error Type mismatch [String: Undefined].
this is my program flow.
un_com_det.asp
.
.
.
if request.querystring("lkcode")=1 then
com=1
eselif request.querystring("lkcode")=2 then
com=2
....
...
..
in Imageupload.asp file.
i'm checking the querystring values
if request.querystring("com")="1" then
fld_nm="/Common\Temp\About_"
elseif request.querystring("Com")="2" then
fld_nm="/Common\Temp\Trust_"
elseif request.querystring("Com")="6" then
fld_nm="/Common\Temp\Faq_"
elseif request.querystring("Com")="7" then
fld_nm="/Common\Temp\Tour_"
elseif request.querystring("Com")="8" then
end if
but i'm using session instead of request.querystring it is working fine.
if trim(session("com"))="1" then
fld_nm="/Common\Temp\About_"
elseif session("Com")="2" then
fld_nm="/Common\Temp\Trust_"
elseif session("Com")="6" then
fld_nm="/Common\Temp\Faq_"
elseif session("Com")="7" then
fld_nm="/Common\Temp\Tour_"
elseif session("Com")="8" then
...
what's the problem in request.querystring()...
thankx.
N Jai Sankar
India.
________________________________
Yahoo! for Good
Click here to donate <http://store.yahoo.com/redcross-donate3/> to the
Hurricane Katrina relief effort.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20051007/e8bcf0ac/attachment.htm>
More information about the Javascript
mailing list