Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Need advice on asp code

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-11-04, 06:21
michaelfg81 michaelfg81 is offline
Registered User
 
Join Date: Mar 2004
Posts: 202
Need advice on asp code

Hi there,

I got one this problem which i cant seem to solve it.
How to pass a parameter thru to another page dynamically?

the code like this but somehow come out error.

RESPONSE.Redirect("../DBPA_GOLDWIRE/MES_GW_Consump_Rpt_Print.asp?reg=MES_GW_Consump_Rp t_Print.asp&issueDate=<%=request.QueryString("issu e_date")%>")

i need to pass a vbscript parameter to another page.
it seems that this statment =<%=request.QueryString("issue_date")%>
in the script come out error.
Can anyone help me please.
Thanx
Reply With Quote
  #2 (permalink)  
Old 10-11-04, 11:23
DMWCincy DMWCincy is offline
Registered User
 
Join Date: May 2004
Posts: 125
try this:


RESPONSE.Redirect("../DBPA_GOLDWIRE/MES_GW_Consump_Rpt_Print.asp?reg=MES_GW_Consump_Rp t_Print.asp&issueDate=" & request.QueryString("issue_date"))
Reply With Quote
  #3 (permalink)  
Old 10-11-04, 20:24
rokslide rokslide is offline
Coffee Minion
 
Join Date: Nov 2003
Location: Sydney
Posts: 1,515
can you do a response.redirect using a relative path like that?? I wouldn't have thought it would be possible.
[edit]
Jsut checked, yeah, you can use a relative path....
[/edit]

Last edited by rokslide : 10-11-04 at 20:34.
Reply With Quote
  #4 (permalink)  
Old 10-11-04, 20:37
michaelfg81 michaelfg81 is offline
Registered User
 
Join Date: Mar 2004
Posts: 202
hi there,

actually it can be done using the path like this.
i tried it before but i kindda forgot how already.
Reply With Quote
  #5 (permalink)  
Old 10-11-04, 20:39
michaelfg81 michaelfg81 is offline
Registered User
 
Join Date: Mar 2004
Posts: 202
i'll try and c the coding u gave me.
Thanx a lot DMWCincy.
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

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