应用引导程序验证时,按钮单击事件未触发(ASP.NET C#)

问题描述:

你好



我正在使用bootstrap主题在asp.net中开发一个应用程序。在登录页面,按钮单击事件正常工作,除非我对其应用引导程序验证。但是当我对它应用bootstrap验证时,按钮点击事件没有触发。



任何人都请尝试解决这个问题,我已经尝试了所有的东西,但不能修好它



谢谢,

Imtiyaz



我是什么尝试过:



Hello

I'm developing an application in asp.net using bootstrap theme. At the login page the button click event is working fine unless I apply bootstrap validation to it. But when I apply bootstrap validation to it, button click event is not firing.

Anyone please try to resolve this issue, I've tried every thing but not able to fix it

Thank,
Imtiyaz

What I have tried:

<div class="form-group">
                    <div class="col-lg-12">
                        <div class="input-group">
                            <span class="input-group-addon"><i class="fa fa-user fa-fw" style="font-size: 16px;"></i></span>
                            <asp:TextBox ID="txtUsername" runat="server" CssClass="form-control" placeholder="Username" meta:resourcekey="txtUsernameResource1"

                                data-bv-notempty="true"

                                data-bv-notempty-message="Username is required and cannot be empty."></asp:TextBox>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-lg-12">
                        <div class="input-group">
                            <span class="input-group-addon"><i class="fa fa-key fa-fw" style="font-size: 16px;"></i></span>
                            <asp:TextBox ID="txtPassword" runat="server" CssClass="form-control" TextMode="Password" placeholder="Password" meta:resourcekey="txtPasswordResource1"

                                data-bv-notempty="true"

                                data-bv-notempty-message="Password is required and cannot be empty."></asp:TextBox>
                        </div>
                    </div>
                </div>




<script type="text/javascript">
    $(document).ready(function() {
        $('#frmMasterLogin').formValidation({
            framework: 'bootstrap',
            icon: {
                valid: 'glyphicon glyphicon-ok',
                invalid: 'glyphicon glyphicon-remove',
                validating: 'glyphicon glyphicon-refresh'
            }
        });
    });</script>

document )。ready( function (){
(document).ready(function() {


#frmMasterLogin')。formValidation({
framework:' bootstrap'
icon:{
valid:' glyphicon glyphicon-ok',
无效:' glyphicon glyphicon-remove'
验证:' glyphicon glyphicon-refresh'
}
});
});< / script>
('#frmMasterLogin').formValidation({ framework: 'bootstrap', icon: { valid: 'glyphicon glyphicon-ok', invalid: 'glyphicon glyphicon-remove', validating: 'glyphicon glyphicon-refresh' } }); });</script>