Webform to webform transfer when loading

garcon

Well-known member
Joined
Dec 13, 2004
Messages
47
Programming Experience
Beginner
Folks,


Is it possible for one webform to automatically request some variables from another webform with it loads up.
For example let say that when "b.aspx.vb" loads up it get some variables from "a.aspx.vb"
Is this possible and how do you do it?

thanks,
g
 
From Schenz's Post:

I would strongly recommend you avoid using session variables. They are easy, and work wonders, but they can get out of hand and use server resources.

Look into Request variables.

Setting a request variable:

Code:
Dim ParamString As String ParamString = "LastName=" & txtLastName.Text ParamString += "&FirstName=" & txtFirstName.Text Response.Redirect("CustomerList.aspx?lookup=name&" & ParamString)​



Using a request variable:


Code:
txtLastName.Text = Request.Params.Item("LastName") txtFirstName.Text = Request.Params.Item("FirstName")​



Hi Schenz, regarding from the reply post. I would like to ask you for help. For the "setting request variable", i had try the codes for checkboxes and do the same for "using a request variable". But how to retrieve more then one values in checkboxes and display in another page? Thank you!
 
Back
Top