how to do validation of radiobuttons
-
in my application i have one table control in that i took 5 radiobutton, my problem is no one select atleast one radio button then he won't go next page.how can validate these radiobuttons srinivas
-
in my application i have one table control in that i took 5 radiobutton, my problem is no one select atleast one radio button then he won't go next page.how can validate these radiobuttons srinivas
you can set a default one
When you get mad...THINK twice that the only advice Tamimi - Code
-
in my application i have one table control in that i took 5 radiobutton, my problem is no one select atleast one radio button then he won't go next page.how can validate these radiobuttons srinivas
if(!(rdioBtn1.Checked || rdioBtn2.Checked || rdioBtn3.Checked || rdioBtn4.Checked || rdioBtn5.Checked )) { MessageBox.Show("Please, select one."); //Here stop the action of going to next page }
Mohamed Gouda Egypt
-
if(!(rdioBtn1.Checked || rdioBtn2.Checked || rdioBtn3.Checked || rdioBtn4.Checked || rdioBtn5.Checked )) { MessageBox.Show("Please, select one."); //Here stop the action of going to next page }
Mohamed Gouda Egypt
You can use Required field validator control... Enjoy coding....
-
if(!(rdioBtn1.Checked || rdioBtn2.Checked || rdioBtn3.Checked || rdioBtn4.Checked || rdioBtn5.Checked )) { MessageBox.Show("Please, select one."); //Here stop the action of going to next page }
Mohamed Gouda Egypt
Hi Mohamed Gouda garu , THANKYOU VERYMUCH your code is very useful to me THANKYOU VERYMUCH Regards, srinivas srinivas