[CLOSED] is there any way to add other control to ext.net formpanel?

  1. #1

    [CLOSED] is there any way to add other control to ext.net formpanel?

    i want to add obout CaptchaImage contrl to ext.net's formpanel , is there any way to do it?
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm36.aspx.cs" Inherits="extdemo.test.WebForm36" %>
    
    <%@ Register TagPrefix="obout" Namespace="Obout.Ajax.UI.Captcha" Assembly="Obout.Ajax.UI, Version=2.13.925.2, Culture=neutral, PublicKeyToken=24f3c5cea456f322" %>
    
    <!DOCTYPE html>
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>test</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <ext:ResourceManager ID="ResourceManager1" runat="server" SourceFormatting="True" />
            <ext:Viewport runat="server">
                <Items>
                    <ext:FormPanel runat="server">
                        <Items>
                            <ext:TextField ID="password1" MinLength="6" runat="server" Vtype="password" InputType="Password" MsgTarget="Side">
                                <Listeners>
                                    <ValidityChange Handler="this.next().validate();" />
                                    <Blur Handler="this.next().validate();" />
                                </Listeners>
                            </ext:TextField>
                            <ext:TextField ID="password2" VtypeText="密码不一致" MinLength="6" runat="server" Vtype="password" InputType="Password" MsgTarget="Side">
                                <CustomConfig>
                                    <ext:ConfigItem Name="initialPassField" Value="password1" Mode="Value" />
                                </CustomConfig>
                            </ext:TextField>
                            <obout:CaptchaImage ID="Captcha1" runat="server" RelativeImageUrl="false" />//i want to add this control here
                        </Items>
                        <Buttons>
                            <ext:Button runat="server" Text="确认" FormBind="true"></ext:Button>
                        </Buttons>
                    </ext:FormPanel>
                </Items>
            </ext:Viewport>
        </form>
    </body>
    </html>
    Last edited by Daniil; May 13, 2014 at 4:16 PM. Reason: [CLOSED]
  2. #2
    Hi @hdsoso,

    You can wrap it in a Container.
    <ext:Container runat="server">
        <Content>
            <obout:CaptchaImage runat="server" />
        </Content>
    </ext:Container>

Similar Threads

  1. [CLOSED] ASP.NET Server Control inside FormPanel
    By UnifyEducation in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: May 25, 2012, 11:07 AM
  2. Replies: 0
    Last Post: Nov 17, 2011, 10:53 AM
  3. Replies: 3
    Last Post: Oct 12, 2011, 11:31 AM
  4. [CLOSED] FormPanel - Hide control - label control
    By seanwo in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Aug 11, 2010, 8:57 AM
  5. Property, user control and FormPanel
    By alainfo in forum 1.x Help
    Replies: 2
    Last Post: Jul 23, 2009, 11:02 AM

Posting Permissions