Quantcast
Viewing all articles
Browse latest Browse all 10

Use Linq to enquire selected value in CheckBoxList in ASP.NET

Linq to object can help us to simplify the coding of retrieving the selected value from a checkboxList. It can provide a better performance than running a for loop, and make the code more clear. For Loop foreach (ListItem li in chkList.Items) { if (li.Selected == true) { str += li.Text + ", "; }... Read more »

Viewing all articles
Browse latest Browse all 10

Trending Articles