You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
I'm a bit rusty on my coding so could you tell me what each of the above are. I'm working on p115 and am particularly puzzled as to what a ListItem item is.
I don't have the book here right now so I can't check the context, but I think that "ListItem item" simply refers to thing / an item that is a ListItem.
A ListItem is an element which is part of an asp control and an item is more C# specific. The code snippet I'm looking at iterates through a loop to find ListItems in a check box and is as follows...
foreach (ListItem item in CheckboxList1.Items)
{
(if item.Selected == true)..........
Its basically the first line and its many referances to Item item Items that threw me. Is my understanding correct. Are there many other types of item? Therefore is it specifying an item of type ListItem?