Solved

Query strings

Posted on 2004-10-11
3
200 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
  • 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 500 total points
ID: 12279896
Response.Redirect(url+ "?var1=" & var1.ToString() & "&var2=" + var2.ToString())
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

832 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