string inputvalue = null; int I = 0; for (I = 0; I <= chk_contentmod.Items.Count - 1; I++) { if (chk_contentmod.Items[I].Selected == true) { inputvalue = chk_contentmod.Items[I].value; } if (imgbtn_save.AlternateText == "Save") { //csd.ResponsibilityID = Convert.ToInt64(chk) csd.Name= txt_name.Text; csd.PostID = Convert.ToInt64(drp_post.SelectedValue); csd.MaintenancecategoryID = (inputvalue); csd.IsEditMember = Convert.ToInt64(rdbtn_caneditupdate.SelectedValue); object result = csd.insert(); } } }
Checked
IsChecked
if (chk_contentmod.Items[I].Selected == true)
Selected
(chk_contentmod.Items[I].Selected)
imgbtn_save.AlternateText == "Save"
object result
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)