private void CreateControls() { txtSearch = new TextBox(); btnSearch = new SPButton("Search"); btnSearch.Click += new System.EventHandler(btnSearch_Click); }
private void CreateControls() { txtForumName = new TextBox(); btnSubmit = new SPButton("Submit"); btnSubmit.Click += new EventHandler(btnSubmit_Click); btnCancel = new SPButton("Cancel"); btnCancel.Click += new EventHandler(btnCancel_Click); }
protected override void CreateAdminChildControls() { AddBoxHeader("Update and Recalculate Forum Totals"); AddText("This page will recalculate forum totals and update the counts for display in statistics."); AddText("</p>"); btnUpdateCounts = new SPButton("Update Totals"); btnUpdateCounts.Click += new EventHandler(btnUpdateCounts_Click); Controls.Add(btnUpdateCounts); }
protected override void CreateAdminChildControls() { AddBoxHeader("Create Sample Data"); AddText("This page will allow you to create a random number of messages for testing purposes."); AddText("</p>"); AddText("<div class=\"ms-alerttext\">WARNING!!! This will overwrite or potentially damage a real forum, proceed with caution!</div>"); AddText("</p>"); btnExecute = new SPButton("Create Sample Data"); btnExecute.Click += new EventHandler(btnExecute_Click); Controls.Add(btnExecute); }
private void CreateControls() { lblWarning = new Label(); lblWarning.Text = string.Format("Warning, you are about to delete the topic named<br>\"{0}\"<br>containing {1} posts.<p>This operation cannot be undone.<p>Are you sure?", topic.Name, topic.NumPosts); lblWarning.CssClass = "ms-alerttext"; btnSubmit = new SPButton("Submit"); btnSubmit.Click += new EventHandler(btnSubmit_Click); btnCancel = new SPButton("Cancel"); btnCancel.Click += new EventHandler(btnCancel_Click); }
protected override void CreateAdminChildControls() { AddBoxHeader("Delete Forum Data"); AddText("This page will delete all forums and reset the system back to the default."); AddText("</p>"); AddText("<div class=\"ms-alerttext\">WARNING!!! This will PERMANENTLY delete ALL your forums! Be sure you to do this.</div>"); AddText("</p>"); btnExecute = new SPButton("Delete Forums"); btnExecute.Click += new EventHandler(btnExecute_Click); Controls.Add(btnExecute); }
private void CreateControls() { chkRead = new CheckBox(); chkAdd = new CheckBox(); chkEdit = new CheckBox(); chkReply = new CheckBox(); chkDelete = new CheckBox(); btnSubmit = new SPButton("Submit"); btnSubmit.Click += new EventHandler(btnSubmit_Click); btnCancel = new SPButton("Cancel"); btnCancel.Click += new EventHandler(btnCancel_Click); }
private void CreateControls() { txtName = new TextBox(); ddlCategories = new DropDownList(); ddlCategories.DataTextField = "Name"; ddlCategories.DataValueField = "Id"; ddlCategories.DataSource = RepositoryRegistry.CategoryRepository.GetAll(); ddlCategories.DataBind(); txtDescription = new TextBox(); txtDescription.TextMode = TextBoxMode.MultiLine; txtDescription.Rows = 10; txtDescription.Columns = 30; btnSubmit = new SPButton("Submit"); btnSubmit.Click += new EventHandler(btnSubmit_Click); btnCancel = new SPButton("Cancel"); btnCancel.Click += new EventHandler(btnCancel_Click); }
protected TableRow CreateButtonRow(SPButton button) { TableCell tableCell; TableRow tableRow = new TableRow(); tableCell = new TableCell(); tableCell.ColumnSpan = 2; tableCell.Width = Unit.Percentage(100); tableCell.HorizontalAlign = HorizontalAlign.Center; tableCell.Controls.Add(button); tableRow.Cells.Add(tableCell); return tableRow; }
private void CreateControls() { cbIsAdmin = new CheckBox(); btnSubmit = new SPButton("Submit"); btnSubmit.Click += new EventHandler(btnSubmit_Click); btnCancel = new SPButton("Cancel"); btnCancel.Click += new EventHandler(btnCancel_Click); }