Example #1
0
    protected void btnSave_Click(object sender, EventArgs e)
    {
        string   id;
        DateTime tmp = DateTime.Now;
        String   gkt = tmp.ToString("MM/dd/yyyy");
        string   cc;

        for (int i = 0; i < grvRoll.Rows.Count; i++)
        {
            id = grvRoll.Rows[i].Cells[0].Text;
            cc = ((RadioButtonList)grvRoll.Rows[i].FindControl("rdoListChamCong")).SelectedValue.ToString();
            Manage.AddAttendance(id, gkt, Convert.ToInt32(cc));
            cc = string.Empty;
            id = string.Empty;
        }

        Response.AddHeader("refresh", "0;url=Redirect.aspx");
    }