If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Error with Request.Query String

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-29-04, 03:54
graceson graceson is offline
Registered User
 
Join Date: Mar 2004
Location: India
Posts: 56
Smile Error with Request.Query String

Dear Friends,

I was trying to pass some variable to a asp page with following code

Response.Write "<td>"& countdt &"<br><a href=""view_caltable.asp?yr="& yn &" &mn="& mn &" &ct="&countdt &" &name1="& nm1 &""" >" & nm1 & "</a> <br><a href=""view_caltable1.asp? prd="& yn &"&mn="&mn &" &ct="&countdt &" &name2="&nm2&"""> "& nm2 &"</td>".

Problem is that all the varaibles are getting passed and first link view_caltable.asp is working perfectly.But second asp file "view_caltable1.asp" is not able to receive some value,

in "view_caltable1.asp", I am using following code,

mn=Request.QUeryString("mn")
name_po2=Request.Querystring("name2")
count=Request.QueryString("ct")
prd=Request.QUeryString("yn")

Here 'prd' is not accepting values form 'yn'
All other varaible are accepting the values. Can anyone help in this proplem please. Is there is any limitation in passing varibale.


Thank

Graceson
Reply With Quote
  #2 (permalink)  
Old 07-29-04, 19:06
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
try removing the spaces from your querystring...

Response.Write "<td>"& countdt &"<br><a href=""view_caltable.asp?yr="& yn &"&mn="& mn &"&ct="&countdt &"&name1="& nm1 &""" >" & nm1 & "</a> <br><a href=""view_caltable1.asp?prd="& yn &"&mn="&mn &" &ct="&countdt &" &name2="&nm2&"""> "& nm2 &"</td>".
Reply With Quote
  #3 (permalink)  
Old 07-30-04, 02:17
graceson graceson is offline
Registered User
 
Join Date: Mar 2004
Location: India
Posts: 56
Error in query string

I removed the space between the text, but still problem s there.But all the passing values are showing there in address bar of "View_clatable1.asp",

eg: http://server/view_caltable1.asp?prd...&name2=Pranjal

but it is not coming when i am using the QueryString command.

like prd1=Request.QueryString("prd")
here prd1 is blank

Hopes you can solve the problem for me


Thank you

graceson
Reply With Quote
  #4 (permalink)  
Old 07-30-04, 02:25
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
I'm not sure if this will solve the problem but I notice that you are missing the end </a> tag in your link,... this may be throwing things out....
Reply With Quote
  #5 (permalink)  
Old 07-30-04, 03:54
graceson graceson is offline
Registered User
 
Join Date: Mar 2004
Location: India
Posts: 56
Thank you for attempting my problem. Added the </a> . But that does not solve the problem. Can you suggest any other command other than Request.QueryString

or if there is any way the clear the memory or buffur.


thanks a lot


graceson
Reply With Quote
  #6 (permalink)  
Old 07-30-04, 12:02
Seppuku Seppuku is offline
Useless...
 
Join Date: Jul 2003
Location: SoCal
Posts: 721
Where are you DIMing "prd1"? If you DIM (or implicitly declare) it inside a block of code, and then try to read it outside of that block, your object is out of the scope and destroyed.
__________________
That which does not kill me postpones the inevitable.

Last edited by Seppuku; 07-30-04 at 12:06.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On