How do you use a custom validator? When might you want to
use one?
Answer Posted / santosh bind
when using the complex validation like text should not contain the max 50 char
protected void cusCustom_ServerValidate(object sender, ServerValidateEventArgs e)
{
if(e.Value.Length == 10)
e.IsValid = true;
else
e.IsValid = false;
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What does asp.net stand for?
Explain difference between dataset and recordset?
Why is this service branded with windows livetm?
Explain how caching in asp.net 2.0 is different from caching in asp.net 1.1?
What is side-by-side execution? Can two applications, one using a private assembly and other using a shared assembly, be stated as side-by-side executables?
What is jade template engine?
What is the difference between user control and custom control?
How does the iis work?
Error : The operation couldn’t be performed because ole db provider sqlncli10 for linked server was unable to begin a distributed transaction.00000110 oledb provider for linked server returned message the partner transaction manager has disabled its support for remote/network transactions. I can able to execute the stored procedure in sql server but when i run the web page getting error like above. I did all the configuration. what is the solution?
Why do we use web config?
Explain the namespace classes used in asp.net mvc? : asp.net mvc
What is gridview in asp.net?
What is custom attribute?
Distinguish between Server-side and Client-side code with its functionality?
What is an axd file?