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 is global.asax file used for?
What is query string in asp.net?
Mention the namespace that is used to include .net data provider for sql server in .net code?
What is the difference between pathparam and queryparam?
What is difference between asp state management and asp.net state management? How can we pass info between 2 asp.net pages?
Explain in what order a destructors is called.
Describe the differences between the lifecycles of Windows services and Standard EXE?
What is inproc and outproc?
What is a pixel url?
What is OSI layer? Explain different layers.
What r the asp.net list controls and diff. Between them?
Asp pages that worked pefectly on windows 2000 server and iis 5.0 do not work on windows 2003 server with iis 6.0. Asp.net pages work fine. Why?
What is Partial PostBack in ASP.NET?
What is the purpose of session management?
To wrap up a call to a Web service the standard used is..?