Hello.. I have a webpage which when an item is added to a database and there's a duplicate entry in the database, a ModalPopup opens asking the end-user if they want to go ahead and add this duplicate item to the database or don't add the item. This modal is opened by the code-behind; if there is a duplicate item boolean is set to True and the modal is shown "MPEDuplicateParcel.Show()".
The modal has two buttons, add or dont add. But when I click on them, they're not working. What am I missing? Thanks.. -Jeff
Main Page:
<ajaxToolkit:ModalPopupExtender ID="MPEDuplicateParcel" runat="server"
BackgroundCssClass="modalBackground"
Dropshadow="true"
OkControlId="btnModalAdd"
CancelControlId="btnModalDontAdd"
PopupControlID="pnlModalPopup"
TargetControlID="pnlModalPopup">
</ajaxToolkit:ModalPopupExtender>
<asp:Panel ID="pnlModalPopup" runat="server" CssClass="modalPopup" style="display:none;">
<asp:Label ID="lbl_ModalPopup" runat="server"></asp:Label>
<br /><br />
<asp:Button ID="btnModalAdd" runat="server" Text="Please Add" />
<asp:Button ID="btnModalDontAdd" runat="server" Text="Don't Add" />
</asp:Panel>
Code-Behind:
ElseIf DuplicateParcel = True Then
MPEDuplicateParcel.Show()
End If
Button Events:
Protected Sub btnModalAdd_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnModalAdd.Click
UpdateMemberDuplicateParcel()
End Sub
Protected Sub btnModalDontAdd_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnModalDontAdd.Click
DontUpdateMemberDuplicateParcel()
End Sub