コード例 #1
0
    protected void btnEdit_Command(object sender, CommandEventArgs e)
    {
        editid.Value = e.CommandArgument.ToString();

        DataTable dtTax = objDesg.GetClassMasterById(Session["CompId"].ToString().ToString(), editid.Value);

        btnNew.Text = Resources.Attendance.Edit;

        txtClassName.Text  = dtTax.Rows[0]["Class"].ToString();
        txtClassNameL.Text = dtTax.Rows[0]["Class_L"].ToString();
        System.Web.UI.ScriptManager.GetCurrent(this).SetFocus(txtClassName);
    }