本文整理汇总了C#中System.Web.UI.WebControls.TableRow.PreventAutoID方法的典型用法代码示例。如果您正苦于以下问题:C# TableRow.PreventAutoID方法的具体用法?C# TableRow.PreventAutoID怎么用?C# TableRow.PreventAutoID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Web.UI.WebControls.TableRow
的用法示例。
在下文中一共展示了TableRow.PreventAutoID方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TableRow
void ITemplate.InstantiateIn(Control container)
{
this._wizard._defaultCreateUserNavigationTemplate = this;
container.EnableViewState = false;
Table child = CreateUserWizard.CreateTable();
child.CellSpacing = 5;
child.CellPadding = 5;
container.Controls.Add(child);
TableRow row = new TableRow();
this._row = row;
row.PreventAutoID();
row.HorizontalAlign = HorizontalAlign.Right;
child.Rows.Add(row);
this._buttons = new IButtonControl[][] { new IButtonControl[3], new IButtonControl[3], new IButtonControl[3] };
this._innerCells = new TableCell[] { this.CreateButtonControl(this._buttons[0], this._wizard.ValidationGroup, Wizard.StepPreviousButtonID, false, Wizard.MovePreviousCommandName), this.CreateButtonControl(this._buttons[1], this._wizard.ValidationGroup, Wizard.StepNextButtonID, true, Wizard.MoveNextCommandName), this.CreateButtonControl(this._buttons[2], this._wizard.ValidationGroup, Wizard.CancelButtonID, false, Wizard.CancelCommandName) };
}
示例2: CreateTable
void ITemplate.InstantiateIn(Control container) {
_wizard._defaultCreateUserNavigationTemplate = this;
container.EnableViewState = false;
Table table = CreateTable();
table.CellSpacing = 5;
table.CellPadding = 5;
container.Controls.Add(table);
TableRow tableRow = new TableRow();
_row = tableRow;
tableRow.PreventAutoID();
tableRow.HorizontalAlign = HorizontalAlign.Right;
table.Rows.Add(tableRow);
_buttons = new IButtonControl[3][];
_buttons[0] = new IButtonControl[3];
_buttons[1] = new IButtonControl[3];
_buttons[2] = new IButtonControl[3];
_innerCells = new TableCell[3];
_innerCells[0] = CreateButtonControl(_buttons[0], _wizard.ValidationGroup, Wizard.StepPreviousButtonID, false, Wizard.MovePreviousCommandName);
_innerCells[1] = CreateButtonControl(_buttons[1], _wizard.ValidationGroup, Wizard.StepNextButtonID, true, Wizard.MoveNextCommandName);
_innerCells[2] = CreateButtonControl(_buttons[2], _wizard.ValidationGroup, Wizard.CancelButtonID, false, Wizard.CancelCommandName);
}