Click here to Skip to main content
15,886,676 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all

I have the following code
C#
//status selection
              string option1 = "";
              if (radIn.Checked == true)
              {
                  option1 = radIn.Text;

              }
              else if (radOut.Checked == true)
              {
                  option1 = radOut.Text;

              }

-this code selects whatever option the user checks as status (in/out).. now i want to validate that the user checks out(i.e. must first select radOut) before checking in and vice versa.. Know how i can go about doing that? thanks
Posted
Comments
Dholakiya Ankit 17-Sep-13 1:22am    
You want like user can not check in before out and vice versa right?

You should select RadioButton.Checked Property[^] of your radio button to apply default select.
 
Share this answer
 
Comments
zikhona nkebe 17-Sep-13 1:50am    
yes @dholakiya
Thanks7872 17-Sep-13 2:17am    
Than use reply button at @dholakiya. He won't get any notification if you comment here.
Try this : MSDN[^] :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900