Response Redirect

  • Thread starter Thread starter Jim Heavey
  • Start date Start date
J

Jim Heavey

I know that to pass one variable in a response redirect, you format your
command line "response.redirect("somepage.aspx?Fred=Male"), but what
character to you use to seperate the variables when you want to pass more
then one?

response.redirect("somepage.aspx?Fred='Male'Tom='Female')
 
Jim Heavey said:
I know that to pass one variable in a response redirect, you format your
command line "response.redirect("somepage.aspx?Fred=Male"), but what
character to you use to seperate the variables when you want to pass more
then one?

response.redirect("somepage.aspx?Fred='Male'Tom='Female')

An ampersand. Also there is a Server method called "UrlEncode" that can be
used to make sure that you don't send unusable characters as parameters.
 
The ampersand.

response.redirect("somepage.aspx?Fred='Male'&Tom='Female'&Mike='neither')
 
Jim Heavey said:
I know that to pass one variable in a response redirect, you format your
command line "response.redirect("somepage.aspx?Fred=Male"), but what
character to you use to seperate the variables when you want to pass more
then one?

response.redirect("somepage.aspx?Fred='Male'Tom='Female')

Use the "&" character.

response.redirect("somepage.aspx?Fred='Male'&Tom='Female')

Weird name for a girl though. 'Tom'
 
Back
Top