Hi every one,
i need code for, when i check checkbox , automatically radiobutton1 checked.
i,e i have one checkbox and 4 radio buttons, if i check on checkbox automatically check the radio button1, and if i uncheck the check box automatically uncheck radio button1,
this is my requirement, pls tell me the procedu to fullfill this task.
thanks in advance.
Loading
Prabhakar ReddyPosted Feb 28, 2013, 11:53 PM
Satyapriya NayakPosted Feb 28, 2013, 8:00 AM
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
namespace WebApplication15
{
public partial class WebForm3 : System.Web.UI.Page
{
protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{
RadioButton1.Checked = false;
if (CheckBox1.Checked==true)
{
RadioButton1.Checked=true;
}
}
}
}