I have created a page that passes a variables from the start page to a results page that allows operators to edit the data. When I click the submit button, it reruns the page load instruction from the edit page and crashes instead of passing the variables to the final page. Here is the cmdSubmit code.
Protected Sub cmdSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdSubmit.Click
Dim strShift = lblShift
Dim strSelDate = lblSelDate
Context.Items.Add("SelDate", strShift)
Context.Items.Add("Shift", strSelDate)
Context.Items.Add("Absent", txtAbsent)
Context.Items.Add("TO", txtTO)
Context.Items.Add("HeadCount", txtHeadCount)
Context.Items.Add("STDHeadCount", txtStdHeadCount)
Context.Items.Add("Notes", txtMPNotes)
Server.Transfer("MPRepUpdated.aspx")
End Sub
How can I get it to bypass the page load instructions and pass the variables to he final page?