When implementing the ICallbackEventHandler in asp.net, in my c# function the RegularExpressionValid
- by Mausimo
Hello,
As the question states, i have implemented my first ICallbackEventHandler. In my c# callback function i use:
Page.Validate("ENewsLetter2");
if (Page.IsValid)
{
if (!RegularExpressionValidatorEmail.IsValid)
{
sInvalidMessage += "Invalid E-Mail address.\n";
}
return sInvalidMessage;
}
everytime i check the RegularExpressionValidatorEmail, the value is = "". I do not know if this is since the iCallbackEventHandler is asynchronous, the validator has not talked to the server yet so the value will always show up blank? Is it impossible to do what i am trying to do by using a iCallbackEventHandler?