[Javascript] Request.querystring type mismatch problem

Flavio Gomes flavio at economisa.com.br
Fri Oct 7 08:19:30 CDT 2005


Let me be the boring guy this time:

I believe Micha has found the problem, but next time send it to an .ASP list, ok?

-- 
Flavio Gomes
flavio at economisa.com.br


Micha Schopman wrote:

> 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.
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
>  
>



More information about the Javascript mailing list