I am doing an application where there will be multiple items displayed on a page. for each item there will be lot of info. The data is completly generated in the code behind .aspx.cs and displayed in the ui.
When the user mouseover particular item , apart from visible elements i need some other info from the code behind to grab for that item. Right now i am storing lot of info with pipe separated in a hidden divs.
When the user mouseovers a item , i go to the context of that div and get the hidden values and show some popups..I just want to know if this is the right approach or if there is any other nice way of storing all the info as a object on the client side.
I am using jquery on the UI side.
You can store your data in a JavaScript object. Generate JSON on the back-end and parse it (or simply assign it as a literal to a variable) on the client side.