Nov 03, 2011, 7:21 PM
Always empty text field when I validate.
Any reason my text field is always found to be EMPTY when it validates, even though I type into the field? This code is from a details window (.ascx custom control) loaded from a .aspx page if that has anything to do with it.
custom control html...
<ext:TextField ID="FirstName" runat="server" FieldLabel="First Name" Width="200" IsRemoteValidation="true">
<RemoteValidation OnValidation="CheckField" />
</ext:TextField>
code behind...
public void CheckField(object sender, RemoteValidationEventArgs e)
{
TextField field = (TextField)sender;
field.Text <--- this is always empty!
}
Last edited by chearner; Nov 03, 2011 at 7:35 PM.