Button click event is not firing
Greetings again dear experts.
I have an .aspx page with two sections
One section allows our users to enter records displays existing records for update.
The second allows users to preview the records, whether insert or update before submitting to the database. This .aspx also has a popup extender with control ID of installAddress_MPE
Then on the vb (code behind), there is a search_click method.
On this method, the search takes the user to the section for inserting and editing records when the popup extender is exposed like this:
installAddress_MPE.Show()
Then there is a preview_click method that allows users to preview their records before submitting.
This method has the popup extender hidden like this:
installAddress_MPE.Hide()
For some reason, when I click the Preview button, my expectation is that it will take the user to the preview section to preview the records s/he entered before submitting.
However, clicking the preview button is not doing anything.
Could you guys be kind enough to show me what I am doing wrong?
I have relevant code and hopefully, that's enough code to show what I am trying to do.
The code is below:
Thanks in advance for your assistance.
<table>
<tr>
<td>
<asp:Button ID="Preview" style="margin-left: 300px !important;" runat="server" Text="Review" OnClick="btnPreview_Click" />
</td>
</tr>
</table>
Protected Sub btnPreview_Click(sender As Object, e As EventArgs) Handles Preview.Click
FillSummary()
installAddress_MPE.Hide()
End Sub
Protected Sub btnPreview_Click(sender As Object, e As EventArgs) Handles Preview.Click
FillSummary()
installAddress_MPE.Hide()
End Sub
Private Sub FillSummary()
'Bring in modifier and dateReceived
Dim Modifier As String = Session("IsModifier")
Dim dateReceived = Session("dteReceived")
'//Show Install Address Summary info
installationAddress.Text = instAddress.Text & " " & instAddressCity.Text & " " & instAddressState.Text & " " & instAddressZip.Text
If secondaryFirstName.Text <> "" And secondaryLastName.Text <> "" And Modifier <> "" Then
ownerInformation.Text = primaryFirstName.Text & " " & primaryLastName.Text & " Or " & secondaryFirstName.Text & " " & secondaryLastName.Text
ElseIf secondaryFirstName.Text <> "" And secondaryLastName.Text <> "" And Modifier = "" Then
ownerInformation.Text = primaryFirstName.Text & " " & primaryLastName.Text & " Or " & secondaryFirstName.Text & " " & secondaryLastName.Text
ownerInformation.Text = primaryFirstName.Text & " " & primaryLastName.Text & " " & secondaryFirstName.Text & " " & secondaryLastName.Text
End If
applicantName.Text = txtApplicant.Text
dateReceived.Text = dateReceived
waterAccountNumber.Text = instAddressAccount.Text
End Sub