Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 206
  • Last Modified:

Query strings

Hello everyone
I am trying to pass some values from one screen to the other..
but the page i want to send the user is in a variable called url..
and i want to pass another value to the page which is in a cariable called client
I know how to pass query strings when iam doing response.redirect to a webpage directly
but can somebody tell me how to use query strings when i am doing response.redirect through a variable

my code looks something like this
url = "transacations.aspx"
response.redirect(url)

it wud be really helpful if somebody cud help me on this
thanks in advance
0
yalamanchir
Asked:
yalamanchir
  • 2
1 Solution
 
Timbo87Commented:
If I understand correctly, you want to pass the query string of the current page to the new page.

url = "transacations.aspx"
Response.Redirect(url & Request.Url.Query)
0
 
tusharashahCommented:
It would be samething:

Response.Redirect(url+ "?var1=" + var1.ToString() + "var2=" + var2.ToString())

-tushar
0
 
tusharashahCommented:
Response.Redirect(url+ "?var1=" & var1.ToString() & "&var2=" + var2.ToString())
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now