Solved

Query strings

Posted on 2004-10-11
3
196 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
Comment Utility
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
Comment Utility
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
Comment Utility
Response.Redirect(url+ "?var1=" & var1.ToString() & "&var2=" + var2.ToString())
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now