Can i assign string value to radiobutton
My code is like this
protected void Button1_Click(object sender, EventArgs e)
{
foreach(GridViewRow r in GridView1.Rows)
{
RadioButton rb = new RadioButton();
rb = (RadioButton)r.FindControl("Radio1");
if (rb.Checked)
{
cmd = new SqlCommand("empdel", con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.Add("@CustomerID", SqlDbType.Int);
con.Open();
cmd.ExecuteNonQuery();
con.Close();
GridView1.EditIndex = -1;
BindGrid();
}
}
}
can any one modify and send