コード例 #1
0
    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);
    }
コード例 #2
0
    protected void btnProcessAuthorList_Click(object sender, EventArgs e)
    {
        List <int> authorIdList = GetUnconfirmedAuthorList();

        ProcessPub.ProcessAuthorList(authorIdList);
    }