本文介绍了错误:-ChangePassword1:ChangePasswordTemplate不包含ID为当前密码的IEditableTextControl的当前密码.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<body class='login'>
    <div class="wrapper">
        <div class="login-body">
            <h3>Change password</h3>
            <form class='form-validate' id="test" runat="server">


                        <asp:ChangePassword ID="ChangePassword1" runat="server" ViewStateMode="Disabled"  EnableViewState="false" SuccessPageUrl="~/default.aspx">

                            <ChangePasswordTemplate>

                                <div class="control-group">
                                    <div class="pw controls">
                                    <asp:Label ID="Label1" runat="server" Text="Label" CssClass="control-label" AssociatedControlID="Oldpassword" class='input-block-level'>Old Password</asp:Label>


                                        <asp:TextBox ID="oldpassword" runat="server" placeholder="Old password" TextMode="Password" CssClass="passwordEntry" class='input-block-level' data-rule-required="true"></asp:TextBox>

                                    </div>
                                </div>
                                <div class="control-group">
                                    <div class="pw controls">
                                    <asp:Label ID="Label2" runat="server" Text="Label" CssClass="control-label" AssociatedControlID="Newpassword" class='input-block-level'>New Password</asp:Label>



                                        <asp:TextBox ID="Newpassword" runat="server" placeholder="New password" TextMode="Password" CssClass="passwordEntry" class='input-block-level' data-rule-required="true"></asp:TextBox>

                                    </div>
                                </div>
                                <div class="control-group">
                                    <div class="pw controls">
                                    <asp:Label ID="Label3" runat="server" Text="Label" CssClass="control-label" AssociatedControlID="Confirm password" class='input-block-level'>Confirm Password</asp:Label>

                                        <asp:TextBox ID="confirmpassword" runat="server" placeholder="confirm password" TextMode="Password" CssClass="passwordEntry" class='input-block-level' data-rule-required="true"></asp:TextBox>

                                    </div>
                                </div>
                                <div class="submit">
                                    <asp:Button ID="btnSubmit" runat="server" CommandName="ChangePassword" Text="Change Password" class="btn btn-primary" />
                                </div>
                            </ChangePasswordTemplate>
                        </asp:ChangePassword>

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


</body>

推荐答案


这篇关于错误:-ChangePassword1:ChangePasswordTemplate不包含ID为当前密码的IEditableTextControl的当前密码.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 10:25