How to pass variables or values from one asp vb code page to another?

Using below way to pass variables or values from one asp vb code page to another.

Using session easy way in asp.net/VB.net.
Session(“TestVariable”) = “aaaa”
From another .aspx.vb page you can now use below value. Example:
Dim str as String = “”
str = Session(“TestVariable”)
You can access this page on any of your .aspx pages for using below references .
Session(“TestVariable”).

About the Author

avatar