C#, Server validation

Discussion in 'Software' started by paul_singh, Sep 23, 2008.

  1. paul_singh

    paul_singh

    Joined:
    Sep 23, 2008
    Messages:
    1
    Hi,

    What I am trying to do is validate at least one out of two check boxes are ticked using the following...

    If neither is ticked the custom validator should kick in.


    private void fCheckboxValidator_ServerValidate(object source, System.Web.UI.WebControls.ServerValidateEventArgs args)
    {
    args.IsValid (publicationTwo.Checked == true) || (publicationOne.Checked == true);
    }

    Any thoughts?
     
    paul_singh, Sep 23, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?TmV3IE1vdGhlciBCb2FyZA==?=

    validation

    =?Utf-8?B?TmV3IE1vdGhlciBCb2FyZA==?=, Aug 27, 2005, in forum: Microsoft Certification
    Replies:
    1
    Views:
    580
    Jupiter Jones [MVP]
    Aug 29, 2005
  2. MarcelM
    Replies:
    4
    Views:
    2,148
    MarcelM
    Sep 10, 2004
  3. mansoor

    validation of MCSE certificate

    mansoor, Aug 6, 2003, in forum: MCSE
    Replies:
    0
    Views:
    2,557
    mansoor
    Aug 6, 2003
  4. Andy Foster

    Re: certificate validation

    Andy Foster, Aug 6, 2003, in forum: MCSE
    Replies:
    0
    Views:
    533
    Andy Foster
    Aug 6, 2003
  5. Jimmy
    Replies:
    3
    Views:
    1,755
    Render Me
    Sep 12, 2005
Loading...

Share This Page