?
Solved

Query strings

Posted on 2004-10-11
3
Medium Priority
?
204 Views
Last Modified: 2010-04-23
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
Comment
Question by:yalamanchir
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 15

Expert Comment

by:Timbo87
ID: 12279879
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
 
LVL 18

Expert Comment

by:tusharashah
ID: 12279880
It would be samething:

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

-tushar
0
 
LVL 18

Accepted Solution

by:
tusharashah earned 2000 total points
ID: 12279896
Response.Redirect(url+ "?var1=" & var1.ToString() & "&var2=" + var2.ToString())
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question