0
내 소스 코드는 다음과 같습니다모달 팝업 버튼 클릭 이벤트에서 vb.net 버튼 클릭 이벤트에 액세스하는 방법은 무엇입니까? 디자인 부분에
<asp:Panel ID="Panel1" runat="server" Style="display: none" CssClass="modalPopup"> <asp:Panel ID="Panel3" runat="server" Style="cursor: move;background-color:#DDDDDD;border:solid 1px Gray;color:Black"> <div> <p>Would you like to book the seat?</p> </div> </asp:Panel> <div> <p style="text-align: center;"> <asp:Button ID="OkButton" runat="server" Text="OK" OnClick="OkButton_Click" /> <asp:Button ID="CancelButton" runat="server" Text="Cancel" /> </p> </div> </asp:Panel>
나는 vb.net 에 OkButton_Click에 액세스하려면 다음과 같이 코드는 다음과 같습니다
Protected Sub OkButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OkButton.Click Dim con As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.Oledb.4.0 ;data source=" & Server.MapPath(".\App_Data\IFFI.mdb") & ";") Dim Cmd As OleDbCommand Dim Qry As String con.Open() Qry = "update seat_layout set lock_status=1,booked_status=1 where theatre_id='" + ddl_theatre.SelectedValue.ToString() + "' and seat_id='" + Session("seat_id").ToString() + "'" Dim img As Button img.BackColor = Drawing.Color.Purple img.Enabled = False Cmd = New OleDbCommand(Qry, con) Cmd.ExecuteNonQuery() con.Close() End Sub
확인 버튼 클릭이 클릭 이벤트를 액세스 할 수 없습니다. 친절하게 도와주세요