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
How would you create a permanent cookie?
In ViewState How much lifespan items stored?
Suppose You Want A Certain Asp.net Function Executed On Mouseover For A Certain Button. Where Do You Add An Event Handler?
What is a 404 redirect?
How can u debug your .net application?
What is cross page posting? How is it done?
What is the difference between a cookie and a pixel?
Which class is used to send an email message from an ASP.NET Web page?
How Session use Cookies in State Management?
What are the types of caching in asp.net?
What are query strings used for?
explain code with datachaching with example
What is session object? Describe in detail.
What is comparevalidator?
Explain http handlers? Where we can use the http handlers?