示例#1
0
 protected void gvRecords_RowEditing(object sender, GridViewEditEventArgs e)
 {
     ViewState["ExistingRecord"] = true;
     BindDnsRecord(e.NewEditIndex);
     EditRecordModal.Show();
     e.Cancel = true;
 }
        private void ResetPopup()
        {
            EditRecordModal.Hide();
            ViewState["ExistingRecord"] = null;

            // erase fields
            litRecordType.Visible       = false;
            ddlRecordType.Visible       = true;
            ddlRecordType.SelectedIndex = 0;
            txtRecordName.Text          = "";
            txtRecordData.Text          = "";
            txtMXPriority.Text          = "1";
            ToggleRecordControls();
        }