protected void GvInsType_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        try
        {
            if (e.CommandName == "Dlt")
            {
                DataTable dt = new DataTable();
                StateCode = Session["StateCd"].ToString();
                UserName  = Session["UsrName"].ToString();
                Flag_IUP  = "D";
                GridViewRow gvrow           = (GridViewRow)((Control)e.CommandSource).NamingContainer;
                Label       lblInstTypeCode = (Label)gvrow.FindControl("lblInstTypeCode");
                Label       lblInstTypeName = (Label)gvrow.FindControl("lblInstTypeName");
                dt = objDist.DeleteInsTypeBAL(lblInstTypeCode.Text, Flag_IUP, ConnKey);

                if (dt.Rows.Count > 0)
                {
                    objCommon.ShowAlertMessage(dt.Rows[0][0].ToString());
                    txtInstutionCode.Text    = "";
                    txtInstutionName.Text    = "";
                    btn_Save.Visible         = true;
                    btn_Update.Visible       = false;
                    txtInstutionCode.Enabled = true;
                    Viewdata();
                }
            }
        }
        catch (Exception ex)
        {
            ExceptionLogging.SendExcepToDB(ex, Session["UsrName"].ToString(), Request.ServerVariables["REMOTE_ADDR"].ToString());
            Response.Redirect("~/Error.aspx");
        }
    }