if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { HiddenField HdSlNo = (HiddenField)e.Item.FindControl("HdSlNo"); RadioButton Option1 = (RadioButton)e.Item.FindControl("Option1"); RadioButton Option2 = (RadioButton)e.Item.FindControl("Option2"); RadioButton Option3 = (RadioButton)e.Item.FindControl("Option3"); RadioButton Option4 = (RadioButton)e.Item.FindControl("Option4"); RadioButton Option5 = (RadioButton)e.Item.FindControl("Option5"); Option1.ID = "rdbtnoption1_" + HdSlNo.Value.ToString(); Option2.ID = "rdbtnoption2_" + HdSlNo.Value.ToString(); Option3.ID = "rdbtnoption3_" + HdSlNo.Value.ToString(); Option4.ID = "rdbtnoption4_" + HdSlNo.Value.ToString(); Option5.ID = "rdbtnoption5_" + HdSlNo.Value.ToString(); }
DataList
ID
ItemTemplate
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)