Exemplo n.º 1
0
    protected void btn_edit_db_Click(object sender, EventArgs e)
    {
        var q = dbmanagement.GetDatabaseListByDbId(Convert.ToInt32(hf_db_id.Value));

        if (q.Any())
        {
            //  Session[Constants.Database.DATABASE_ID] = Convert.ToInt32(hf_db_id.Value);
            //  Session[Constants.Database.UPDATE_DATABASE] = "Update";
            /// hf_database_id.Value = hf_db_id.Value;

            Session["databaseid"]    = hf_db_id.Value;
            btn_create_database.Text = "Update Database";
            foreach (var a in q)
            {
                txt_database_name.Text           = a.DatabaseName;
                ddl_select_website.SelectedValue = a.WebsiteName;
            }
        }
    }