问题标签 [listitem]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
4 回答
48385 浏览

asp.net - ASP.NET,VB:检查 CheckBoxList 的哪些项目被选中

我知道这是一个非常基本的问题,但我找不到如何在 VB 中执行此操作......我有一个 CheckBoxList,其中一个选项包括一个用于填写您自己的值的文本框。因此,当检查其复选框时 这是后面的代码,我不确定在我的 If 语句中放入什么来测试是否检查了某个 ListItem。

0 投票
3 回答
3126 浏览

c# - 转换 IEnumerable到 IEnumerable

我在尝试使用 C# 中的 yield return 功能时遇到了这个错误。该错误出现在视觉工作室内部的选择中,我不太明白。在我看来,我正在将一个字符串转换为 ListItem,然后将该批次作为 IEnumerable 返回。我对收益回报和 IEnumerable 的理解很可能不合时宜,因此我们将不胜感激。注释代码是老派的做法,它确实可以正常工作。

无法将类型“System.Collections.Generic.IEnumerable”隐式转换为“System.Web.UI.WebControls.ListItem”

0 投票
1 回答
1050 浏览

sharepoint-2010 - 编辑列表项的另一列时的 SharePoint 2010 列依赖性

如果在列表项中更新了某个列,是否有办法要求必须更新该列?可以通过浏览器编辑或 SP 设计器在配置列表期间完成的操作。

因此,如果我有一个包含 A、B、C 列的列表,则创建的列表项仅填充了 A。有人通过填写 B 来编辑列表项,如果 B 有数据,我需要要求 C 包含数据

0 投票
1 回答
364 浏览

asp.net - 为什么 ASP.NET ListItem 类是密封的?

我只是好奇。为什么需要密封ASP.NET ListItem类?

0 投票
0 回答
970 浏览

asp.net - ListBox.ListItem.Selected 总是返回 false

这将需要一些时间来解释,但在这里:

1) 我创建了一个带有 PlaceHolder 控件的 .aspx 页面。

2)我使用页面从数据库加载“容器”用户控件:

3) 在容器控件中,当 GridView 进入“编辑”模式时,我使用 DevExpress gridview 动态加载用户控件。

4)“容器”控件然后加载其“列表框”(回发)用户控件,这是如何实现的:

5)然后我创建了一个接口,我的所有回发用户控件都实现了:

6)这是该接口的实现:

7)在容器控件中,当我从列表框(或 ClientParameter)中获取选定值时,这是我从列表框中获取实际选定值时遇到的问题

0 投票
1 回答
1008 浏览

php - php preg_match_all:拆分列表项和子列表

我正在尝试使用 php 的preg-match-all函数拆分一些 html 内容:

例如,我希望能够更改链接描述;

同时保持原始html的结构。到目前为止,我成功地使用以下方法拆分链接:

这样做的缺点是它会丢弃子列表,并输出同一级别的所有列表项;没有父母和孩子的区别。

有什么想法可以保持原有的层次结构吗?

谢谢 :)

0 投票
1 回答
872 浏览

c# - Binding List Item array to repeater

Olá eveyone,

I have a datasource which returns a single row like this:

now, I need to translate that into a repeater like this:

when user clicks on know more then imma show them the right page. all is okay, only, since my DataSet is a single row, I Was wondering how to do this. I have an enum with those roles so translating numbers to roles is not a problem.

I was thinking split that string 4,3,2 into array and bind it to repeater. but I need the group name as well.

so I want something like ListItem(GroupName, Role) for each of the roles. so list item is great. or keyvalue pair array.

I am confused which is the best one to use in this scenario? if I should use ListItem array, can I bind it to repeater?

0 投票
2 回答
7170 浏览

javascript - 向上或向下排序列表项

我在下面尝试做的一个非常简单的例子。左侧的链接/按钮向上移动项目,右侧的链接/按钮向下移动项目。但它不起作用,我收到一个错误:

对象不支持此属性或方法

在这一行:

示例图像:

这是我的代码:

0 投票
3 回答
6443 浏览

android - ListView中ListItem的内容垂直居中

我的 android 应用程序有布局问题:

我有一个列表视图,其中包含使用以下布局的项目:

这得出以下结果: 在此处输入图像描述

但我也想让曲目标题和副标题居中。像那样: 在此处输入图像描述

所以AFAIK我做了一切,这就是结果。

0 投票
1 回答
1055 浏览

colors - 更改 ChecklistBox 的 CheckBox 背景颜色

我正在研究checklistBox,其中,我在运行时从数据库中填充checklistBox,现在在填充时我检查一个条件,如果它为假,则应该禁用CheckListBox中的ListItem,否则应该启用它,它工作正常,但我想提前一步,想更改禁用列表项的背景颜色。如何更改所选 listItem 的 ListItem 背景颜色。