Saturday, June 20, 2026

Display checkbox list selected text in label control

  StringBuilder sb = new StringBuilder();


        foreach (ListItem item in CheckBoxList1.Items)

        {

            if (item.Selected)

            {

                sb.Append(item.Text + ", ");

            }

        }

        lblfocdata.Text=sb.ToString();


No comments:

Post a Comment

ADD MP4 VIDEO IN ASPX PAGE

  <video autoplay loop muted width="100%" height="100%" src="pic/yoga.mp4"> x