Author: computer_boy | Posted on: 4/10/2009 2:37:46 PM | Views : 371

Hi,
Can someone let me know what does the followng code means, and I also had one question about using this code. I am following the ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter Kit book and In that book it uses two table for the product where as I use only one, and what I was wondering was since in the code below it use two hidden field, for me to use this code do I need to get ride of these and if so what do I replace them with:

If e.Item.ItemType = ListItemType.Item OrElse _
   e.Item.ItemType = ListItemType.AlternatingItem Then

Dim rpt As Repeater = DirectCast(e.Item.FindControl(?Repeater1?), Repeater)

Dim ItemID As HiddenField = New HiddenField
Dim ItemName As HiddenField = New HiddenField

ItemID.ID = ?ItemID?
ItemName.ID = ?ItemName?

ItemID.Value = e.Item.DataItem(?MenuItemID?)
ItemName.Value = e.Item.DataItem(?ItemName?)

Go to the complete details ...