- How can I pass variables or values from one asp vb code page to another?
- Session("myVariable") = "blah"
- Dim strTest as String = ""
- strTest = Session("myVariable")
- {
- string MyOccupation = "Software Developer";
- string url;
- url = "page2.aspx?occupation=" + MyOccupation;
- Response.Redirect(url);
- }
- {
- this.TextBox1.Text = Request.QueryString["occupation"];
- RetrievedValue = this.TextBox1.Text;
- }