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
Name the tools or API for developing or testing web api?
What is the use of execute non query in asp.net?
COM+ Used ________________ Isolation Level
Explain a program using razor view engine to create a simple application? : asp.net mvc
Differentiate between early binding and late binding.
What is server side session management?
Why we use dbms for projects? Why don’t we save any application data in separate files instead of dbms?
What is session and application variable in asp net?
What is asp.net web pages?
How can we access static variable?
Which ASP.NET configuration options are supported in the ASP.NET implementation on the shared web hosting platform?
How long does an http session last?
Name the two properties are on every validation control?
Difference between .NET and previous version?
If you are using components in your application, how can you handle exceptions raised in a component?