コード例 #1
0
 private void Page_Load(object sender, System.EventArgs e)
 {
     if (FormField.Title == "")
     {
         title.Text = "new question";
     }
     else
     {
         title.Text = SFGlobal.TruncateText(FormField.Title, 30);
     }
     title.Command    += new CommandEventHandler(button_Command);
     title.CommandName = "edit";
     title.Attributes.Add("onMouseOver", "showControls('fl_" + FormField.FieldID.ToString() + "');");
     upButton.Command        += new CommandEventHandler(button_Command);
     upButton.CommandName     = "up";
     dnButton.Command        += new CommandEventHandler(button_Command);
     dnButton.CommandName     = "dn";
     editButton.Command      += new CommandEventHandler(button_Command);
     editButton.CommandName   = "edit";
     deleteButton.Command    += new CommandEventHandler(button_Command);
     deleteButton.CommandName = "delete";
 }