how many times a radio button is selcted

Posted by Saanjhi under ASP.NET AJAX on 9/13/2013 | Points: 10 | Views : 1025 | Status : [Member] | Replies : 3
how to count how many times a radio button selected and ans is shown in a text box.




Responses

Posted by: Allemahesh on: 9/13/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
Can you elaborate you question more clearly?

Saanjhi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bandi on: 9/13/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Follow this thread:
http://www.dotnetfunda.com/forums/thread16261-count-how-many-times-a-radio-button-is-selected.aspx

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Saanjhi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Satyapriyanayak on: 9/13/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Radio_button_count
{
public partial class Form1 : Form
{
int radiobtn_count = 0;

public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
if (radioButton1.Checked == true)
radiobtn_count++;

textBox1.Text = radiobtn_count.ToString();

}
}
}


If this post helps you mark it as answer
Thanks

Saanjhi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response