Getting data from Textbox before submitting form

wings9697

Member
Joined
Aug 27, 2007
Messages
23
Location
Washington, DC
Programming Experience
10+
Hi. I have a small template form in which I'm capturing items recovered from a event location. There are three fields which are the same for each item in the process, and I want to capture their value when the user enters them on the first page, and then repopulate the fields with the data on the subsequent pages. I tried to get the values before I inserted the record into the table, but that failed....

My question is how do I refer to the controls value so that I can read them into a session variable to populate the values into their repective fields on the next page?

Any help is greatly appreciated.... thanks....
 
capture before data

on the template form when the user selects 'edit'

Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
' CREATE BEFORE USER RECORD
Dim field1label_before As Label = CType(DetailsView2.Rows(1).Cells(1).Controls(1), Label)
field1_before = field1label_before.Text
 
Back
Top