protected void btnModuleEditSave_Click(object sender, ImageClickEventArgs e)
    {
        try
        {
            if (txtModuleName.Text.Trim() == "")
            {
                string js = "alert('Please Enter Module name');";
                ScriptManager.RegisterStartupScript(this, this.GetType(), "errorMail", js, true);
                return;
            }

            else
            {
                BLL_Infra_Lib_ModuleTemp.Update_ModuleName(UDFLib.ConvertToInteger(hdnModuleTypeID.Value), txtModuleName.Text.Trim(), GetSessionUserID());
                string js = "alert('Module Updated..!.');";
                ScriptManager.RegisterStartupScript(Page, Page.GetType(), "SUCCESS", js, true);
                ImageButton1.Visible  = true;
                btnModuleEdit.Visible = false;
                txtModuleName.Enabled = false;
            }
        }
        catch (Exception ex)
        {
            string js = "alert('Error editing module" + ex.Message.Replace("'", "") + "');window.close();";
            ScriptManager.RegisterStartupScript(this, this.GetType(), "mailerror", js, true);
        }
    }