Kinder1stgradeteacher
New Member
I am using jquery simple modal.\[code\]function showCancelledModal() { $('#<%=CancelledPanel.ClientID %>').modal({ appendTo: 'form' });}<aspanel ID="CancelledPanel" runat="server" Style="display: none"> <aspropDownList ID="CancelledDropDownList" runat="server"></aspropDownList> <asp:Button ID="CancelButton" runat="server" Text="Cancel" OnClick="CancelButton_Click" /></aspanel>protected void CancelButton_Click(object sender, EventArgs e){ var item = CancelledDropDownList.SelectedItem.Value; //CancelReservation(strReservationId); }\[/code\]The problem is, on my button click event it doesn't seem to get the selected value of the drop down list. It just defaults to the first value every time. I am binding the drop down list to a table in the page load event. Can anyone offer any suggestions?