[CLOSED] Password validation doesn't work on the page using the master page

  1. #1

    [CLOSED] Password validation doesn't work on the page using the master page

    Hi,

    Master
    <%@ Master Language="C#" AutoEventWireup="true" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    </head>
    <body>
        <ext:ResourceManager ID="ResourceManager1" runat="server">
        </ext:ResourceManager>
    
        <form id="form1" runat="server">
            <ext:Viewport runat="server">
                <Content>
                    <asp:ContentPlaceHolder ID="BodyContent" runat="server">
                    </asp:ContentPlaceHolder>
                </Content>
            </ext:Viewport>
        </form>
    </body>
    </html>
    Page
    <%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" %>
    <asp:Content ID="Content2" ContentPlaceHolderID="BodyContent" runat="server">
            <ext:FormPanel ID="FormPanel1" runat="server">
                <Items>
                    <ext:TextField 
                        ID="PasswordField" 
                        runat="server"                    
                        FieldLabel="Password"
                        InputType="Password"
                        AllowBlank="false">
                            <Listeners>
                                <ValidityChange Handler="this.next().validate();" />
                                <Blur Handler="this.next().validate();" />
                            </Listeners>
                        </ext:TextField>
                    <ext:TextField
                    ID="TextField1" 
                        runat="server"                     
                        Vtype="password"
                        FieldLabel="Confirm Password"
                        InputType="Password"
                        MsgTarget="Under">
                        <CustomConfig>
                            <ext:ConfigItem Name="initialPassField" Value="PasswordField" Mode="Value" />
                        </CustomConfig>                      
                    </ext:TextField>
                </Items>
            </ext:FormPanel>
    </asp:Content>
    I input the same password but I see validation error "Passwords do not match".

    P.S. This case works good on the page without the master page.
    Last edited by Daniil; Jan 31, 2014 at 5:11 AM. Reason: [CLOSED]
  2. #2
    It is not bug, 'initialPassField' expects ConfigID (not ID), if you use MasterPage then ConfigID != ID (like ClientID != ID)
    Vladimir Shcheglov
    Sr. Developer
  3. #3
    Hi,

    Here was a similar discussion.
    http://forums.ext.net/showthread.php?25464
  4. #4
    Quote Originally Posted by Daniil View Post
    Hi,

    Here was a similar discussion.
    http://forums.ext.net/showthread.php?25464
    Thanks, Daniil

Similar Threads

  1. Replies: 1
    Last Post: Sep 08, 2013, 6:10 AM
  2. [CLOSED] date validation problem with master page
    By farallones in forum 2.x Premium Help
    Replies: 1
    Last Post: Jul 30, 2013, 4:27 PM
  3. Replies: 0
    Last Post: Jul 30, 2012, 11:39 AM
  4. Replies: 4
    Last Post: Feb 13, 2012, 3:21 PM
  5. Replies: 2
    Last Post: May 05, 2010, 11:23 AM

Posting Permissions