美文网首页C#
CheckBox复选框选中内容显示

CheckBox复选框选中内容显示

作者: 青春的天空007 | 来源:发表于2018-12-04 22:18 被阅读0次

String str = " ";

        foreach (ListItem item in CheckBoxList1.Items)

        {

            if (item.Selected)

            {

                str = item.Text + "," + str;

            }

        }

        label.Text = str;

相关文章

网友评论

    本文标题:CheckBox复选框选中内容显示

    本文链接:https://www.haomeiwen.com/subject/wnhbcqtx.html