954,560 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Passing Value to another page & then again to another page

Hi,

I want to pass a value from one page to another(say from page1 to page2) & the same value again to another page(say page3).


What is the best way to do this in vb.net. Query string, Session Variables or any other method?

Thanx

“Peace comes from within. Do not seek it without.”
Anup

anup.maverick
Newbie Poster
16 posts since Oct 2009
Reputation Points: 10
Solved Threads: 0
 

Querystring is always useful if you want the user to be able to return to such a page directly, or bookmark it.

The only other consideration is security - remember that querystrings can be modified by the user.

There are a whole bunch of ways to pass values, see here:

http://msdn.microsoft.com/en-gb/magazine/cc300437.aspx

shibbard
Newbie Poster
17 posts since Nov 2009
Reputation Points: 10
Solved Threads: 2
 

Use Sessions
Assing Value to session variable

Session("myname") = "xyz"


To retrieve value from session

txtbox.text = session("myname")


Mark as solved if it helps you

reach_yousuf
Junior Poster
195 posts since Sep 2007
Reputation Points: 12
Solved Threads: 38
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: