[Javascript] Request.querystring type mismatch problem

Jai Sankar N pnjaisan at yahoo.com
Fri Oct 7 04:35:39 CDT 2005


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 to the Hurricane Katrina relief effort. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20051007/617462e3/attachment.htm>


More information about the Javascript mailing list