当前位置: 首页>>代码示例>>C#>>正文


C# TableRow.PreventAutoID方法代码示例

本文整理汇总了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) };
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:16,代码来源:CreateUserWizard.cs

示例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);
            }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:26,代码来源:CreateUserWizard.cs


注:本文中的System.Web.UI.WebControls.TableRow.PreventAutoID方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。