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

Cookies login

  Match login id and password using cookies under 1 minutes if user not input valid I'd pass in 1 min then cookies expired and go to hom...