nested datalists event bubble

M

Marty U.

I have two datalists nested. On the ItemDataBound Event of the first
datalist I databind the second with specific info. A couple questions:

1) How can I utilize the OnItemCommand of the nested datalist(inner) to
retrieve the DataKey value when a user clicks a link button?

2) Is there anything I should be concerned with about ViewState? This is
a reporting tool and no input is accepted.

I have found a couple examples but none pointing out the requirement of
needing to retrieve the datakey of the nested datalist or datagrid for
that matter.

The problem I experienced was getting a null object reference when I
attempted to access the nested datalist directly with an onclick routine
of the link button. Before I left work today I realized how foolish I
was with that thinking so I am back to the drawing board.

If you need more details please let me know.

Thanks in advance.

Marty U.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top