34 references to Count
System.Web (28)
UI\StateManagedCollection.cs (7)
119Debug.Assert(index >= -1 && index <= Count, "Expected index to be at least -1 and less than or equal to Count."); 244if (index < Count) { 286if (index < Count) { 550return Count; 593if (index < 0 || index >= Count) { 647if (index < 0 || index > Count) { 731_hadItems = Count > 0;
UI\WebControls\DetailsView.cs (1)
366int capacity = Fields.Count;
UI\WebControls\GridView.cs (1)
417int capacity = Columns.Count;
UI\WebControls\ImageMap.cs (3)
186_hasHotSpots = ((_hotSpots != null) && (_hotSpots.Count > 0)); 263if ((_hotSpots != null) && (_hotSpots.Count > 0)) { 316if (hotSpotIndex >= 0 && hotSpotIndex < _hotSpots.Count) {
UI\WebControls\Menu.cs (6)
1784if ((depth < LevelMenuItemStyles.Count) && (LevelMenuItemStyles[depth] != null)) { 1806if ((depth < LevelSelectedStyles.Count) && (LevelSelectedStyles[depth] != null)) { 1980if ((depth < LevelMenuItemStyles.Count) && (LevelMenuItemStyles[depth] != null)) { 1997if (depth < LevelSelectedStyles.Count && LevelSelectedStyles[depth] != null) { 2025if ((nextDepth < LevelSubMenuStyles.Count) && (LevelSubMenuStyles[nextDepth] != null)) { 2061_levelStyles.Count > nextDepth &&
UI\WebControls\MenuRendererStandards.cs (2)
193lastIndex = Math.Max(lastIndex, Menu._levelMenuItemStyles.Count); 221if (Menu._levelMenuItemStyles != null && index < Menu._levelMenuItemStyles.Count) {
UI\WebControls\ObjectDataSource.cs (1)
831if (SelectParameters.Count > 0) {
UI\WebControls\ParameterCollection.cs (1)
170for (int i = 0; i < Count; i++) {
UI\WebControls\SqlDataSource.cs (1)
890if (SelectParameters.Count > 0) {
UI\WebControls\SqlDataSourceView.cs (1)
1206for (int i = 0; i < parameters.Count; i++) {
UI\WebControls\TreeNode.cs (1)
1143if ((depth < _owner.LevelStyles.Count) && (_owner.LevelStyles[depth] != null) && mergedStyle.ImageUrl.Length > 0) {
UI\WebControls\TreeView.cs (3)
638_levelImageUrls = new string[LevelStyles.Count]; 1870if (depth < LevelStyles.Count && LevelStyles[depth] != null) { 2301if (depth < LevelStyles.Count && LevelStyles[depth] != null) {
System.Web.DynamicData (1)
DynamicData\DynamicDataExtensions.cs (1)
184var whereParametersCopy = new Parameter[whereParameters.Count];
System.Web.Entity (4)
System\Data\WebControls\EntityDataSource.cs (4)
1189if (0 < WhereParameters.Count && !AutoGenerateWhereClause && String.IsNullOrEmpty(Where)) 1194if (0 < OrderByParameters.Count && !AutoGenerateOrderByClause && String.IsNullOrEmpty(OrderBy)) 1199if (0 < CommandParameters.Count && String.IsNullOrEmpty(CommandText)) 1204if (0 < SelectParameters.Count && String.IsNullOrEmpty(Select))
System.Web.Entity.Design (1)
System\Data\WebControls\Design\EntityDataSourceDesignerHelper.cs (1)
1179Debug.Assert(newParameters.Count == 0, "new parameter collection should not contain any parameters yet");