Modal Bootstrap ASP按钮不是事件

时间:2016-10-04 19:19:53

标签: javascript asp.net twitter-bootstrap webforms bootstrap-modal

我有引导模式,当我调用asp:Button事件时,OnClick无效。我添加了我的按钮属性UseSubmitBehavior="false"我调用了事件OnClick,但我的TextBox值为空。 请帮帮我!

对于模态引导,我使用link js

<script src="/Content/bootstrap/dist/js/bootstrap.js" type="text/javascript"></script>
<script src="/Content/bootstrap/dist/js/bootstrap-modalmanager.js"></script>
<script src="/Content/bootstrap/dist/js/bootstrap-modal.js"></script>

这是我的模态窗口

<div id="static" class="panel panel panel-info modal fade" tabindex="-1" role="dialog" data-backdrop="static" data-keyboard="false" style="display: none;">
    <div class="panel-heading">
        info
    </div>
    <div class="panel-body">
        <div class="modal-body">
            <div class="row">
                <div class="col-xs-12 col-sm-12 col-md-12">

                </div>
            </div>
            <br />
            <div class="row">
                <div class="col-xs-12 col-sm-12 col-md-12">                         
                    <asp:TextBox runat="server" ID="testе" ></asp:TextBox>
                </div>
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <div class="col-xs-4 col-sm-4 col-md-4 text-left">
            <button type="button" data-dismiss="modal" class="btn btn-link">close</button>
        </div>
        <div class="col-xs-8 col-sm-8 col-md-8 text-right">
            <asp:Button ID="btnDownload" runat="server"  OnClick="btnDownload_Click" class="btn btn-success" Text="downl"></asp:Button>

        </div>
    </div>
</div>

和我的OnClick()

protected void btnDownload_Click(object sender, EventArgs e)
    {


        string tets = testе.Text; 

    }

0 个答案:

没有答案