Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pass two variables 1

Status
Not open for further replies.

tamnet

IS-IT--Management
Jun 2, 2005
31
GB
Hi,
I have a asp page that updates multiple records to my DB I the want to redirect to another page to view the records with the updated data, I want to create one view page that will be accessed by 10 others depending on a Due Date and also a machine name however I cannot get the syntax of the Response.Redirect right could someone help ??

This is my code at the moment

Code:
Response.Redirect "MCDetailsAsahis.asp?DueDate=" & Request.QueryString("DueDate")

and what i need is to add another querystring based on the field value "MCName", this is what i have tried

Code:
Response.Redirect "MCDetailsAsahis.asp?DueDate=" & Request.QueryString("DueDate")& "MCName=" & Request.QueryString("MCName")




Regards

Paul
 
Try

Response.Redirect "MCDetailsAsahis.asp?DueDate=" & Server.URLEncode(DueDate) & "MCName=" & Server.URLEncode(MCName)
 
...add the brackets

Response.Redirect ("MCDetailsAsahis.asp?DueDate=" & Server.URLEncode(DueDate) & "MCName=" & Server.URLEncode(MCName))
 
Guys,
thank you both I have used Festor's solution but "stars" to you both



Regards

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top