Click here to Skip to main content
15,566,065 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Above this code is an updatepanel that contain all my code; then i have this below. btnSubmit2 is not triggering a click event. I tried all sort of things read all forums and still cant get it to trigger the click event. any suggestions? Thanks

XML
<div id="myModal" class="modal fade" tabindex="-1" role="dialog" runat="server" aria-labelledby="myLargeModalLabel" aria-hidden="true" style="width: 100%">
<div class="modal-dialog modal-lg">
                    <div class="modal-content" >
                        <div class="modal-header" style="background-color:#4b6c9e;">New Service Application Form</div>
                        <div class="modal-body" style="padding-left: 30px;">
<asp:Panel runat="server">  
<asp:UpdatePanel ID="updatePanelEmail" runat="server" UpdateMode="Conditional">
<ContentTemplate>
 <asp:CheckBox ID="chckbxPrint" runat="server" Text="Print to PDF" Checked="True" />                                   
 <asp:CheckBox ID="chckbxEmail" runat="server" Text="Email to Customer"  />
<asp:Button ID="btnSubmit2" runat="server" Text="Go" Width="50px" ValidationGroup="Report" />
            </ContentTemplate>
            <Triggers>
              <asp:AsyncPostBackTrigger ControlID="btnSubmit2" EventName="Click" />
                   </Triggers>
        </asp:UpdatePanel>
    </asp:Panel>
                        </div>
                       
  <button type="button" class="btn btn-default" data-dismiss="modal" id="btnClose" style="display:none;">Close</button>
         </div>             
            </div>   
            </div>
Posted
Updated 26-Aug-14 6:52am
v2
Comments
Abhishek Pant 26-Aug-14 14:26pm    
try <asp:PostBackTrigger ControlID="btnSubmit2"> .I guess this works.I was in same trouble yesterday.Also look for end tags may be missing
Member 10736689 28-Aug-14 17:05pm    
end tags missing was the problem thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900