示例#1
0
 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);
 }
示例#2
0
 protected void EditUDPButton_Click(object sender, EventArgs e)
 {
     if (UDPView.SelectedDataKey != null)
     {
         (UDPEditorForm.FindControl("NameBox") as TextBox).ReadOnly = true;
         UDPEditorForm.Show(EditorMode.Edit);
     }
 }