473,387 Members | 1,897 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

aspx - passing variables through URL

I want to pass variables through the URL from one page to
another, and I am trying to use the request object in the
code-behind of the receiving page. I am passing through
the URL because I have created a URL link dynamically on
the sending page. What I suspect is that I need to use
the request statement on the aspx page of the receiving
page, put that into an object or variable (still on the
aspx page) and then in the code behind refer to the
object/variable. Am I making this too complicated? Any
input is appreciated.
Jul 19 '05 #1
2 10430
SR
Hi

Would recommend the approach given by MS for the same.
This is a neat and maintainable way to do the same

http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/cpguide/html/cpconpassingservercontrolvaluesbetweenpages
..asp

hope this helps

regards,

sr
-----Original Message-----
I want to pass variables through the URL from one page to
another, and I am trying to use the request object in the
code-behind of the receiving page. I am passing through
the URL because I have created a URL link dynamically on
the sending page. What I suspect is that I need to use
the request statement on the aspx page of the receiving
page, put that into an object or variable (still on the
aspx page) and then in the code behind refer to the
object/variable. Am I making this too complicated? Any
input is appreciated.
.

Jul 19 '05 #2
If u're talking about passing some values thro the querystring .. then
u should be able to capture the values in the page_onload event using
the request.querystring.
i guess this is what u're looking for ..?
regards,
Soni
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: domeceo | last post by:
can anyone tell me why I cannot pass values in a setTimeout function whenever I use this function it says "menu is undefined" after th alert. function imgOff(menu, num) { if (document.images) {...
2
by: Robin | last post by:
I want to pass variables through the URL from one page to another, and I am trying to use the request object in the code-behind of the receiving page. I am passing through the URL because I have...
4
by: Doruk | last post by:
The problem that we are experiencing is simple: We want to pass certain parameters from a page with several server controls to another page. We want to do this in a dotnet compliant manner,...
5
by: francois | last post by:
I would like to pass information between ASPX pages. For now, my navigation are hardcoded links. In some case I do a Response.Redirect("pages.aspx") Now I wonder is this is a good way to do. ...
2
by: Alessandro Rossi | last post by:
Hi, I have a usercontrol with a button. In the button's click event I have to open an instance of an aspx page, passing some values to some public variables of the page. How can I call the instance...
1
by: Eric | last post by:
Hello, I am trying to come up with the best way to pass large amounts of data from page to page, namely a data table. The user needs to enter data into a form in one page and confirm it on...
2
by: macyp | last post by:
I have to pass values from one aspx page to another. The controls I have in the first page are: a textbox, 3 drop down lists, and 2 check boxes, and a submit button. It is a search page, and the...
5
by: GeRmIc | last post by:
Hi, I have an ASPX application from which I need to pass session variables (ex:username and password) to an ASP Page. How do I do this? Could you pls give a n example code for both aspx and asp....
0
by: James Robertson | last post by:
OK so I have that and get it. Now here is my code, I want to insert the www.mydomain.com?email=username@domain.com to the string "USER@DOMAIN.NET" to accept the variable from elier. How and where?...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.