
capturing the data of a submitted web form and using it in another
Hi Sam,
Quote:
>I am getting started with .net using VB and am trying to build a simple Web
>Application with two web forms. the first form has a textfield and a button
and
>on submitting the first form, the second form comes up with a text field in
which
>i want to grab and display the value that the user inputs in the first
form. can
>anyone help me with this????
Put this code in the button's click event for the first form:
Session("sSomeString") = Text1.Value
page.Navigate("WebForm2.aspx")
And put this code in the second form's load event:
If Not IsPostback Then ' Evals true first time browser hits the page
Text1.Value = Session("sSomeString").ToString
End If
Constance Petersen
--
SoftMedia Artisans, Inc.
http://www.smartisans.com
Visual Basic.NET Internet Black Book
ISBN: 1-58880-078-4