Wednesday, August 10, 2011

Radiobutton text vale in code behind c#

for (int i = 0; i < GridView1.Rows.Count; i++)

{

GridViewRow row = GridView1.Rows[i];

orgqstno = ((

Label)GridView1.Rows[i].FindControl("Label2")).Text;

// Response.Write(((RadioButton)row.FindControl("MyRadioButton3")).Text+"<br>");

//orgqs

if (((RadioButton)row.FindControl("MyRadioButton3")).Text =="")

{

((

RadioButton)row.FindControl("MyRadioButton3")).Visible = false;

((

RadioButton)row.FindControl("MyRadioButton4")).Visible = false;

}

}

No comments: