PDA

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



hdsoso
May 07, 2014, 2:28 AM
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>

Daniil
May 07, 2014, 7:59 AM
Hi @hdsoso,

You can wrap it in a Container.

<ext:Container runat="server">
<Content>
<obout:CaptchaImage runat="server" />
</Content>
</ext:Container>