page2.aspx?var=x

i was sending variables between pages in asp but how can i request the variable's value in page2 which was sent from page1 in .net (vb)?

in aspx or aspx.vb (codebehind)?

thank you for your help..

LVL 2
waterhiddenAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

iboutchkineCommented:
Use Session variables instead. You can pick them up on any page.
waterhiddenAuthor Commented:

anything like request("var") ??


pillbug22Commented:
dim myVar as String = Request.QueryString("sentVar")

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Exploring SQL Server 2016: Fundamentals

Learn the fundamentals of Microsoft SQL Server, a relational database management system that stores and retrieves data when requested by other software applications.

iboutchkineCommented:
Session("Name") = "abc"
or
Session(MyID) = 12345

or
Session("NewDataset") = Dataset1

etc

you can assign it to any object
Zlatin ZlatevSenior Technical Architect, Salesforce Commerce CloudCommented:
Bob LearnedCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: pillbug22 {http:#9248394}

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

TheLearnedOne
EE Cleanup Volunteer
Zlatin ZlatevSenior Technical Architect, Salesforce Commerce CloudCommented:
I agree with the recommendation.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.