protected void btnSave_Click(object sender, EventArgs e)
        {
            TextBox txtClientId   = DetailsView1.FindControl("txtClientID") as TextBox;
            TextBox txtClientName = DetailsView1.FindControl("txtClientName") as TextBox;
            TextBox txtClientDesc = DetailsView1.FindControl("txtClientDesc") as TextBox;
            int     ClientID      = Convert.ToInt32(txtClientId.Text.ToString());
            string  ClientName    = txtClientName.Text.ToString();
            string  ClientDesc    = txtClientDesc.Text.ToString();

            Debug.WriteLine("");
            Debug.WriteLine("Data From Grid:");
            Debug.WriteLine("EnvType ID: " + ClientID);
            Debug.WriteLine("EnvType Title: " + ClientName);
            Debug.WriteLine("EnvType Desc: " + ClientDesc);
            DatabaseConnectivity dbcon = new DatabaseConnectivity();
            int ResultQuery            = dbcon.setEnvType(ClientID, ClientName, ClientDesc);

            //Console.WriteLine("<script>alert(" + ResultQuery + "record has been updated." + ")</script>");
            //ClientScript.RegisterStartupScript(this.GetType(), DateTime.Now.ToString(), "<script>alert(" + ResultQuery + "record has been updated." + ")</script>", true);
            //ScriptManager.RegisterStartupScript(this, this.GetType(), DateTime.Now.ToString(), "<script>alert(" + ResultQuery +")</script>", true);
            DetailsView1.Visible = false;
            this.Page_Load(null, null);
            //UpdatePanel1.Update();
            //UpdatePanel1.Update();
            //DetailsView1.Style.Add("display", "none");
        }