capturing the data of a submitted web form and using it in another 
Author Message
 capturing the data of a submitted web form and using it in another

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????


Mon, 25 Aug 2003 06:34:17 GMT  
 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



Tue, 26 Aug 2003 05:05:42 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. capture PDF form data using web browser control

2. capture PDF form data using web browser control

3. simulating Submit from an HTML form using Web Browser control in Visual Basic

4. blank report using web using Web Forms Viewer

5. need app that submits form on web page

6. Submit Form to Web Host DLL?

7. SUBMIT form with 3 different submit buttons - error

8. Submitting Form WITHOUT Submit Button

9. SUBMIT form with 3 different submit buttons - error

10. What fires the submit action of a form without a submit button

11. Submitting Form WITHOUT a Submit Button

12. Submitting form without submit button...

 

 
Powered by phpBB® Forum Software