Why one value is only stored in a variable?
Pass Variable From One Page to Other using VB.NET
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
susheel verma4 reputationPosted Feb 18, 2013, 5:15 PM EST
i.e. :
on frist page :
Session("Myvar") = "value of your variable"
on second page :
Dim Str1 as String=" "
Str1=Session("Myvar")
Jignesh TrivediRank #16 · 50.3K reputationPosted Feb 18, 2013, 5:33 PM EST
to the pass value from one page to other page is also depend on application are used.
means if you use window application than you may pass value using constructor or property setter.
if you use web application than you may use any state management like view state, query string session etc.
hope this will help you.