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 > Response.redirect problem again !!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-10-04, 05:29
gop373 gop373 is offline
Registered User
 
Join Date: Aug 2004
Posts: 77
Response.redirect problem again !!

I want to use response.redirect to pass value to page2.asp so
when I write
response.redirect "page2.asp?title="&request.querystring("title" )
There is no problem. But when I write

response.redirect "page2.asp?title=&request.querystring("title")&sto ckname=&request.querystring("stockname")&numshare= "&request.querystring("numshare")

It didn't work !!
Reply With Quote
  #2 (permalink)  
Old 09-10-04, 12:54
Seppuku Seppuku is offline
Useless...
 
Join Date: Jul 2003
Location: SoCal
Posts: 721
Try this:

response.redirect "page2.asp?title=" & request.querystring("title") & "stockname=" & request.querystring("stockname") & "numshare=" & request.querystring("numshare")

You were missing some double quotes in certain locations
__________________
That which does not kill me postpones the inevitable.
Reply With Quote
  #3 (permalink)  
Old 09-11-04, 05:16
gop373 gop373 is offline
Registered User
 
Join Date: Aug 2004
Posts: 77
The message that I got after I type your code was
"Unterminated string constant"
:-(
Reply With Quote
  #4 (permalink)  
Old 09-11-04, 05:17
gop373 gop373 is offline
Registered User
 
Join Date: Aug 2004
Posts: 77
Ok It works now. Thanks ..
Reply With Quote
  #5 (permalink)  
Old 09-11-04, 05:42
gop373 gop373 is offline
Registered User
 
Join Date: Aug 2004
Posts: 77
Oh No !!! It doesn't work well.

I type
response.redirect "index2.asp?title=" & request.querystring("title") & "stockname=" & request.querystring("stockname") & "price="&request.querystring("price")&"numshar e=" & request.querystring("numshare")

Then when I type <%=request.querystring("title")%> in index2.asp
I got
stockname=price=numshare=

What is this !!!!!!
Reply With Quote
  #6 (permalink)  
Old 09-11-04, 06:15
gop373 gop373 is offline
Registered User
 
Join Date: Aug 2004
Posts: 77
So now it looks better. I type

response.redirect "index.asp?title="&request.querystring("title")&"s tockname="&request.querystring("stockname")&"price ="&request.querystring("price")&"numshare="&reques t.querystring("numshare")

In index2.asp , I got
buystockname=Microsoftprice=34.22numshare=3

I don't want word stockname, price, numshare !!! :-(
Reply With Quote
  #7 (permalink)  
Old 09-11-04, 07:22
gop373 gop373 is offline
Registered User
 
Join Date: Aug 2004
Posts: 77
Ya !!!! It work now.
The answer must be something like this

url = "maketrade.asp?title="&request.querystring("title" )&"&stockname="&request.querystring("stockname")&" &price="&request.querystring("price")&"&numshar e= "&request.querystring("numshare")
Response.Redirect(url)

Finally I can do it !! :-)
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