コード例 #1
0
    protected void BtnDeptUpdate_Click(object sender, EventArgs e)
    {
        try
        {
            emp.EmpId = Convert.ToInt32(DdlEmpName.SelectedValue);
            emp.Desg  = Convert.ToInt32(DdlDesg.SelectedValue);

            int Result = emp.ModifyDesgDetails();

            if (Result == 1)
            {
                lblMsg.Text = "Record Updated Successfully";
            }
            else
            {
                lblMsg.Text = "Record Not Updated ";
            }
        }

        catch (Exception ex)
        {
            lblMsg.Text = ex.Message;
        }
    }