Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > Software > C#, Server validation

Reply
Thread Tools

C#, Server validation

 
 
paul_singh paul_singh is offline
Junior Member
Join Date: Sep 2008
Posts: 1
 
      09-23-2008
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?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using both server side validation and client side validation =?Utf-8?B?dmlkeWE=?= ASP .Net 1 06-02-2005 09:45 PM
Using Summary Validation control with server Custom validation =?Utf-8?B?QmFyYmFyYSBBbGRlcnRvbg==?= ASP .Net 2 10-15-2004 06:15 PM
ASP.NET Web Forms Validation Controls are Server-Side or Client-Side Validation? Matt ASP .Net 14 01-30-2004 09:15 AM
validation summary doesnt display when there's client-side validation Libs ASP .Net 0 06-25-2003 03:05 PM
Re: only custom validation control does server side validation? Colin Mackay ASP .Net 0 06-25-2003 07:54 AM



Advertisments