CustomVaidator Examples

Posted on 2007-10-10
Last Modified: 2008-01-09

Want to know why do we need CustomValidators. Can you give me any real time example or implementation.

I want to know if it can help in any of my web pages.

Thank yall
Question by:AdibRahman77
    LVL 10

    Expert Comment

    LVL 10

    Assisted Solution

    LVL 6

    Assisted Solution

    CustomValidator might be helpful when your validation rule applies to many controls. for example, if you have 2 DropDownList's where the second depends on the SelectedValue of the 1st, a CuatomValidator may be used to validate a rule that applies to the selection of both controls.
    LVL 2

    Assisted Solution

    CUstom validator is helpful when u need conditional checking. Let us say you have 3 fields country state and city and if the country name entered is US then the user must enter state other wise he can leave it blank. In such a situation you can use custom validator and implement your custom logic through it.
    LVL 7

    Accepted Solution

    you can test the custom validator online
    try this:

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
    ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now