How do you use a custom validator? When might you want to
use one?
Answer Posted / pallavi
Field: <asp:textbox id="textbox1" runat="server">
<asp:CustomValidator id="valCustom" runat="server"
ControlToValidate="textbox1"
ClientValidationFunction="ClientValidate"
OnServerValidate="ServerValidate"
ErrorMessage="*This box is not valid" dispaly="dynamic">*
</asp:CustomValidator>
ClientValidationFunction is usually a javascript funtion included in the html to the user. OnServerValidate is the function that is server-side to check for validation if client does not support client-side validation.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Define common type system?
Explain about Automatic resource management?
I want to connect a system in LAN and I want to access that. Whenever I am moving a mouse in my desktop, the similar thing has to happen in another system in which I have connected. I need coding for this in C# and ASP.NET Can anyone please help me. It is very urgent. Thanks in advance. My email id is manojkumarchallagundla@gmail.com Will you please?
Difference between using directive vs using statement?
What is caching? Explain.
Can you explain page lifecycle in net?
What is asp.net web application?
Why SessionID changes in every request in asp.net?
How does asp net store session ids by default?
List down the sequence of methods called during the page load.
What is Web API Routing?
What websites use asp.net?
What is page request in asp.net?
What asp.net control can embed xaml into asp.net pages?
What is viewstate parameter?