コード例 #1
0
ファイル: UpdateMessage.cs プロジェクト: bsimser/spforums
        private void CreateButtonSection()
        {
            _form.Controls.Add(new LiteralControl("<tr>"));
            _form.Controls.Add(new LiteralControl("<td align=middle colspan=2>"));

            _form.Controls.Add(new LiteralControl("&nbsp;"));

            _btnPost        = new OWSSubmitButton();
            _btnPost.Click += new EventHandler(btnPost_Click);
            _btnPost.Text   = "Post";
            _btnPost.ID     = "btnPost";
            _form.Controls.Add(_btnPost);

            _form.Controls.Add(new LiteralControl("&nbsp;"));
            _form.Controls.Add(new LiteralControl("&nbsp;"));
            _form.Controls.Add(new LiteralControl("&nbsp;"));

            _btnCancel        = new OWSSubmitButton();
            _btnCancel.Click += new EventHandler(btnCancel_Click);
            _btnCancel.Text   = "Cancel";
            _btnCancel.ID     = "btnCancel";
            _form.Controls.Add(_btnCancel);

            _form.Controls.Add(new LiteralControl("</td>"));
            _form.Controls.Add(new LiteralControl("</tr>"));
        }
コード例 #2
0
ファイル: UpdateMessage.cs プロジェクト: bsimser/spforums
		private void CreateButtonSection()
		{
			_form.Controls.Add(new LiteralControl("<tr>"));
			_form.Controls.Add(new LiteralControl("<td align=middle colspan=2>"));

			_form.Controls.Add(new LiteralControl("&nbsp;"));

			_btnPost = new OWSSubmitButton();
			_btnPost.Click += new EventHandler(btnPost_Click);
			_btnPost.Text = "Post";
			_btnPost.ID = "btnPost";
			_form.Controls.Add(_btnPost);

			_form.Controls.Add(new LiteralControl("&nbsp;"));
			_form.Controls.Add(new LiteralControl("&nbsp;"));
			_form.Controls.Add(new LiteralControl("&nbsp;"));

			_btnCancel = new OWSSubmitButton();
			_btnCancel.Click += new EventHandler(btnCancel_Click);
			_btnCancel.Text = "Cancel";
			_btnCancel.ID = "btnCancel";
			_form.Controls.Add(_btnCancel);

			_form.Controls.Add(new LiteralControl("</td>"));
			_form.Controls.Add(new LiteralControl("</tr>"));
		}