protected void InsertUDPButton_Click(object sender, EventArgs e) { var txt = (TextBox)UDPEditorForm.FindControl("NameBox"); if (txt.ReadOnly == true) txt.ReadOnly = false; UDPEditorForm.Show(EditorMode.Insert); }
protected void EditUDPButton_Click(object sender, EventArgs e) { if (UDPView.SelectedDataKey != null) { (UDPEditorForm.FindControl("NameBox") as TextBox).ReadOnly = true; UDPEditorForm.Show(EditorMode.Edit); } }