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 are the Types of authentications in IIS
What is difference between web config and global asax?
How does u get record no from 5 to 15 from a dataset of 100 records?
Why is string called immutable data type?
Can you set which type of comparison you want to perform by the comparevalidator control?
What tags do you need to add within the asp:datagrid tags to bind columns manually? Give an example.
What is protected configuration?
Explain parts of assembly?
What is postback request?
Why is global asax is used?
Explain about Application and Session Events ?
What is the use of worker process in asp.net?
How can you apply a theme to your asp.net application?
Explain what is the procedure to create the environment for asp.net? : asp.net mvc
How does a content page differ from a master page?