Server side button click event is not working from bootstrap popup's footer button

Hi ,

I am trying to call server side click event from my bootstrap popup . I wanted to save data . But I am unable to fire click event on button click . I checked online and they says keep your text box and buton inside form tag. I also tried that as well but not working ..

<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="exampleModalLabel">Create State</h4>
                <div class="modal-body">
                    <div class="form-group">
                        <label for="recipient-name" class="control-label">State</label>
                        <asp:TextBox class="form-control" ID="txtState" runat="server"></asp:TextBox>

                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                    <asp:Button UseSubmitBehavior="false" ID="btnSave" runat="server"  Text="Save" class="btn btn-primary tp" OnClick="btnSave_Click" />
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!