Jun 17, 2013, 11:46 AM
In popup window button <DirectEvent> is not working (not Firing)
Hello Sir,
i have used Below example
https://examples2.ext.net/#/Form/Mis.../Contact_Form/
My code below:
aspx page code
The control with ID 'Button2' not found
please check this screen shot
Please give some hint.
i have used Below example
https://examples2.ext.net/#/Form/Mis.../Contact_Form/
My code below:
aspx page code
<ext:Window ID="Window1"
runat="server"
Title="Quick Idea"
Width="350"
Height="300"
MinWidth="250"
MinHeight="200"
DefaultFocus="firstName"
Layout="FitLayout"
Resizable="true"
Modal="true" >
<Items>
<ext:FormPanel ID="FormPanel1"
runat="server"
Border="false"
AutoDoLayout="true"
BodyPadding="10">
<LayoutConfig>
<ext:VBoxLayoutConfig Align="Stretch" />
</LayoutConfig>
<FieldDefaults
LabelAlign="Top"
LabelWidth="100"
LabelStyle="font-weight:bold;" />
<Items>
<ext:FieldContainer ID="FieldContainer1"
runat="server"
FieldLabel=""
LabelStyle="font-weight:bold;padding:0;"
Layout="HBoxLayout">
<FieldDefaults LabelAlign="Top" />
<Items>
<ext:TextField ID="txtName"
runat="server"
Flex="1"
Name="firstName"
ItemID="firstName"
FieldLabel="Name"
AllowBlank="false">
<AfterLabelTextTpl>
<Html>
<span style="color: red; font-weight: bold" data-qtip="Required">*</span>
</Html>
</AfterLabelTextTpl>
</ext:TextField>
</Items>
</ext:FieldContainer>
<ext:TextField ID="txtEmail"
runat="server"
FieldLabel="Email ID"
Vtype="email"
AllowBlank="false">
<AfterLabelTextTpl>
<Html>
<span style="color: red; font-weight: bold" data-qtip="Required">*</span>
</Html>
</AfterLabelTextTpl>
</ext:TextField>
<ext:TextField ID="txtPhone"
runat="server"
Note="(999) 999-9999"
FieldLabel="Phone"
AllowBlank="false">
<Plugins>
<ext:InputMask ID="InputMask1" runat="server" Mask="(999) 999-9999" UnmaskOnBlur="true" />
</Plugins>
<AfterLabelTextTpl>
<Html>
<span style="color: red; font-weight: bold" data-qtip="Required">*</span>
</Html>
</AfterLabelTextTpl>
</ext:TextField>
<ext:TextArea ID="txtIdea"
runat="server"
FieldLabel="Idea"
LabelAlign="Top"
Flex="1"
Margins="0"
AllowBlank="false">
<AfterLabelTextTpl>
<Html>
<span style="color: red; font-weight: bold" data-qtip="Required">*</span>
</Html>
</AfterLabelTextTpl>
</ext:TextArea>
</Items>
<Buttons>
<ext:Button ID="Button1"
runat="server"
Text="Cancel">
<Listeners>
<Click Handler="this.up('form').getForm().reset(); this.up('window').hide();" />
</Listeners>
</ext:Button>
<ext:Button ID="Button2"
runat="server"
Text="Send" >
<DirectEvents>
<Click OnEvent="QuickSend">
</Click>
</DirectEvents>
</ext:Button>
</Buttons>
</ext:FormPanel>
</Items>
</ext:Window>
aspx.cs file code
protected void Page_Load(object sender, EventArgs e)
{
}
protected void QuickSend(object sender, DirectEventArgs e)
{
}
I am getting following error when I click on Button2 to submit data.The control with ID 'Button2' not found
please check this screen shot
Please give some hint.