Author: amogh_bad | Posted on: 8/18/2008 1:21:08 PM | Views : 529

 hi,i am writing a custom validator for the following scenario.
I have a textbox and 2 radio lists.If there is text entered in the textbox,i want to validate if either one of the radio lists is checked.
 Server side validation looks as follows:
protected void Validate(object source, ServerValidateEventArgs args)
        {
            try
            {
                if ((txtEmp.Text != string.Empty) || (txtEmp.Text != ""))
                {
                    if ((rdolPayMethod1.SelectedValue != null) || (rdolMethod2.SelectedValue ...

Go to the complete details ...