When implementing the ICallbackEventHandler in asp.net, in my c# function the RegularExpressionValid
Posted
by Mausimo
on Stack Overflow
See other posts from Stack Overflow
or by Mausimo
Published on 2010-05-03T19:23:05Z
Indexed on
2010/05/03
19:28 UTC
Read the original article
Hit count: 198
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?
© Stack Overflow or respective owner