N
npverni
I have datalist binding to an arraylist of custom objects (defined in a
class "PageItem"). What I am trying to do is access the source
PageItem object in an ItemCommand event handler of the DataList.
For example, I would like to do something like the following:
protected void dlPages_ItemCommand(object source,
DataListCommandEventArgs e)
{
(PageItem) thisPage = (PageItem)[...?? reference to the object
that this item is bound to...]
}
Thanks,
Nathan
class "PageItem"). What I am trying to do is access the source
PageItem object in an ItemCommand event handler of the DataList.
For example, I would like to do something like the following:
protected void dlPages_ItemCommand(object source,
DataListCommandEventArgs e)
{
(PageItem) thisPage = (PageItem)[...?? reference to the object
that this item is bound to...]
}
Thanks,
Nathan