I have a list (ListView) which which displays a lot of information, and what I want to do is get the DataItem after its DataBounded, ie on the ItemCommand event.
I know I can just store the keys in the DataKey, but I need to store a lot more info than keys.
The information comes from various external sources and I only need to save the ones the user has clicked on.
A few solutions
- Store the key and re-obtain it from the external datasource, but this is expensive and slow
- Store the data in the session, expensive in memory
- Store in all incoming data in db, but again, the data is not needed
- Store in viewstate, this would create a massive view state...
- Get the data from the view itself, but I dont display all the data I need, some information is not displayed, ie Id's
As I write this I believe there is no real solution apart from what I have written above.
Anyone have better solutions?