protected void ProcessSelectedAuthors_Click(object sender, EventArgs e) { List <int> authorIdList = new List <int>(); for (int i = 0; i < gvAuthor.Rows.Count; i++) { CheckBox chxSelectTemp = (CheckBox)gvAuthor.Rows[i].FindControl("chxSelect"); if (chxSelectTemp == null) { return; } int id; Label lblIdTemp = null; lblIdTemp = (Label)gvAuthor.Rows[i].FindControl("lblId"); if (lblIdTemp != null) { if (chxSelectTemp.Checked) { id = Convert.ToInt32(lblIdTemp.Text); authorIdList.Add(id); } } else { return; } } ProcessPub.ProcessAuthorList(authorIdList); }
protected void btnProcessAuthorList_Click(object sender, EventArgs e) { List <int> authorIdList = GetUnconfirmedAuthorList(); ProcessPub.ProcessAuthorList(authorIdList); }