Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

radio button

$
0
0

Dear All
 
I have two radio button in a groupbox.
i want to add the radio button value in the database.
my problem is how to add two button values in the same column.(if one is select then save in database in same column).

like :male female.

i am using this code.

        private void rdbtnGold_CheckedChanged(object sender, EventArgs e)
        {
            if (rdbtnGold.Checked != false)
            {
                this.txtItemDescription.Items.Clear();
                gold();              
            }
        }

        private void rdbtnSilver_CheckedChanged(object sender, EventArgs e)
        {
            if (rdbtnSilver.Checked != false)
            {
                this.txtItemDescription.Items.Clear();
                silver();
            }
        }


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>