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


C# ListControl.BindToDefinedType方法代码示例

本文整理汇总了C#中System.Web.UI.WebControls.ListControl.BindToDefinedType方法的典型用法代码示例。如果您正苦于以下问题:C# ListControl.BindToDefinedType方法的具体用法?C# ListControl.BindToDefinedType怎么用?C# ListControl.BindToDefinedType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Web.UI.WebControls.ListControl的用法示例。


在下文中一共展示了ListControl.BindToDefinedType方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: BindDefinedTypeDropdown

        /// <summary>
        /// Binds the defined type dropdown.
        /// </summary>
        /// <param name="ListControl">The list control.</param>
        /// <param name="definedTypeGuid">The defined type GUID.</param>
        /// <param name="userPreferenceKey">The user preference key.</param>
        private void BindDefinedTypeDropdown( ListControl listControl, Guid definedTypeGuid, string userPreferenceKey )
        {
            listControl.BindToDefinedType( DefinedTypeCache.Read( definedTypeGuid ) );
            listControl.Items.Insert( 0, new ListItem( string.Empty, string.Empty ) );

            if ( !string.IsNullOrWhiteSpace( gfTransactions.GetUserPreference( userPreferenceKey ) ) )
            {
                listControl.SelectedValue = gfTransactions.GetUserPreference( userPreferenceKey );
            }
        }
开发者ID:NewPointe,项目名称:Rockit,代码行数:16,代码来源:TransactionList.ascx.cs

示例2: BindListToDefinedType

 /// <summary>
 /// Binds the type of the list to defined.
 /// </summary>
 /// <param name="listControl">The list control.</param>
 /// <param name="definedTypeGuid">The defined type GUID.</param>
 /// <param name="insertBlankOption">if set to <c>true</c> [insert blank option].</param>
 protected void BindListToDefinedType( ListControl listControl, string definedTypeGuid, bool insertBlankOption = false )
 {
     var definedType = DefinedTypeCache.Read( new Guid( definedTypeGuid ) );
     listControl.BindToDefinedType( definedType, insertBlankOption );
 }
开发者ID:tcavaletto,项目名称:Rock-CentralAZ,代码行数:11,代码来源:MembersRow.cs

示例3: BindDefinedTypeDropdown

 /// <summary>
 /// Binds the defined type dropdown.
 /// </summary>
 /// <param name="ListControl">The list control.</param>
 /// <param name="definedTypeGuid">The defined type GUID.</param>
 /// <param name="userPreferenceKey">The user preference key.</param>
 private void BindDefinedTypeDropdown( ListControl listControl, Guid definedTypeGuid, string userPreferenceKey )
 {
     listControl.BindToDefinedType( DefinedTypeCache.Read( definedTypeGuid ) );
     listControl.SelectedValue = !string.IsNullOrWhiteSpace( gfBatchFilter.GetUserPreference( userPreferenceKey ) ) ?
         listControl.SelectedValue = gfBatchFilter.GetUserPreference( userPreferenceKey ) : null;
 }
开发者ID:CentralAZ,项目名称:Rockit-CentralAZ,代码行数:12,代码来源:BatchList.ascx.cs

示例4: BindDefinedTypeDropdown

        /// <summary>
        /// Binds the defined type dropdown.
        /// </summary>
        /// <param name="ListControl">The list control.</param>
        /// <param name="definedTypeGuid">The defined type GUID.</param>
        /// <param name="userPreferenceKey">The user preference key.</param>
        private void BindDefinedTypeDropdown( ListControl ListControl, Guid definedTypeGuid, string userPreferenceKey )
        {
            ListControl.BindToDefinedType( DefinedTypeCache.Read( definedTypeGuid ) );
            //ListControl.Items.Insert( 0, new ListItem( All.Text, All.Id.ToString() ) );

            ListControl.SelectedValue = !string.IsNullOrWhiteSpace( rFBFilter.GetUserPreference( userPreferenceKey ) ) ?
                ListControl.SelectedValue = rFBFilter.GetUserPreference( userPreferenceKey ) : null;
        }
开发者ID:pkdevbox,项目名称:Rock,代码行数:14,代码来源:BatchList.ascx.cs

示例5: BindDefinedTypeDropdown

 /// <summary>
 /// Binds the defined type dropdown.
 /// </summary>
 /// <param name="ListControl">The list control.</param>
 /// <param name="definedTypeGuid">The defined type GUID.</param>
 /// <param name="userPreferenceKey">The user preference key.</param>
 private void BindDefinedTypeDropdown( ListControl listControl, Guid definedTypeGuid, string userPreferenceKey )
 {
     listControl.BindToDefinedType( DefinedTypeCache.Read( definedTypeGuid ) );
 }
开发者ID:CentralAZ,项目名称:Rockit-CentralAZ,代码行数:10,代码来源:TransactionDetail.ascx.cs


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