Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieving info from a prior web page

Status
Not open for further replies.

tassflint

Programmer
Dec 29, 2005
21
US
Hello all,

I am currently attepting to get info from a prior web page and can not figure out how this is done.

On my web page i have html text input controls, filled from a database. The users, once the info has been filled in, click on a link button and it goes to a processing page. This processing page will then look at what they have entered and redirect them to the next page for what they need.

I could have sworn there was a request.form(formname).item(controlname).Value that would do this, but i have not found anything like this.


Thanks in advance,

Brian
 
You can do it a few ways
1.) Querystring
2.) Session variables
3.) Viewstate
 
Create an OnClick event for your link button and populate some session variables - that would be the easiest way in my opinion.

Code:
Sub btnSubmit_Click(Sender as Object, e as EventArgs)
     Session("VariableName") = myControl.Text
End Sub
-or-
Code:
Sub btnSubmit_Click(Sender as Object, e as EventArgs)
     Session.Add("VariableName", value)
End Sub
Then on your next page, you can recall those session values and do whatever you want with them.



~Melagan
______
"It's never too late to become what you might have been.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top