Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show property value in a repeater

Status
Not open for further replies.

Kai77

Programmer
Jun 7, 2004
77
NL
I have the following strucure:

public struct AvailableSkillDetails
{
public int ID;
public int CDT_ID;
public int SKI_ID;
public bool DIPLOMA;
public DateTime DIPLOMA_DATE;
public string DESCRIPTION;
}

I put several of these objects in a sortedlist. Now I want to databind the sortedlist to the repeater. How would i display the value of the property "description" for each entry in the repeater?
 
Try this, in your repeater:
<ItemTemplate...>

<# MyFunc(Container.DataItem) #>



in your code behind:
function MyFunc(byval ObjTheItem as Object) as String
return ObjTheItem.GetType()
end function

what exactly does it print???

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top