Click here to Skip to main content
15,896,153 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

i have a text change event where i am writing a functionality in the code behind i.e. .cs page and also i am checking a regular expression validation on the same event but in the html part, i am facing a problem like i am not getting the error messgae on the change, the error message comes for a fraction of a second and then vaninshes. please let me know what can be done to overcome this
Posted
Comments
Kamalsingh Saini 12-Nov-13 9:51am    
For clear picture please post related code you are using.

1 solution

Of you are checking validation on client side, then you have to do something like below.
JavaScript
function isValidated()
{
   If(validation passed)
   {
       return true;
   }
   else
   {
       return false;
   }
}

That means whenever validation is failed, it should return false, so that it will not PostBack and show the message properly.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900