Aug 25, 2014, 2:05 PM
[CLOSED] ASP.NET Form Validation Request error when closing a Window containing a TextArea
When I run this code (press the button) I get a validationrequest error. How can get rid of this error without switching of this ASP.NET security feature.? It works fine when I use a Label instead of a TextArea.
protected void ErrorButton_Click(object sender, DirectEventArgs e)
{
this.IncidentErrorWindow.Close();
this.IncidentTabPanel.Enable();
}
<ext:Window runat="server" ID="IncidentErrorWindow" Title="Error Message" Hidden="true" Width="330" Icon="cancel" Closable="false">
<Items>
<ext:FormPanel runat="server" Border="False" Padding="5" DefaultAnchor="100%" BodyStyle="background-color: #E0E0E0;" ButtonAlign="Center">
<Items>
<ext:TextArea runat="server" ID="IncidentErrorMessage" MinHeight="120" ReadOnly="true" Margin="5" AutoScroll="true" />
</Items>
<Buttons>
<ext:Button runat="server" ID="IncidentErrorButton" Text="OK" >
<DirectEvents>
<Click OnEvent="ErrorButton_Click" />
</DirectEvents>
</ext:Button>
</Buttons>
</ext:FormPanel>
</Items>
</ext:Window>
Last edited by Daniil; Sep 02, 2014 at 1:12 PM.
Reason: [CLOSED]