开发者

How to add custom attributes for items in a CheckBoxList?

I have a req开发者_如何学运维uirement of showing the check box list. And for each check box item, I have to store a custom attribute (apart from text and value) which I will use to compare in button click event.

Please suggest me better approach

thanks in advance..


You can concatenate the custom value with the value of the checkbox separating them with a well-known character or set of chearacters. You can then retrieve and split values from the request.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜