SQL query result sent to aspx page to be used by Jquery
I have a question and I thank everyone for helping me in advance.
I am using Visual Studio 2010, ASP.NET and C#.
I have a table in SQL server DB.
Server page (news.aspx.cs) is collecting all the data from the table (select * from news).
Using container.Controls.Add(new LiteralControl(news.ToString())); I am sending the query results to front page (news.aspx).
Now, I have that data put in separate DIV tags, one news in one DIV tag, and my idea was to hover over one div and to expand that same DIV with one small picture and more text (small picture url and the text are all stored in the same SQL table news.)
When I hover over a div, it expands, but it shows only the picture and the text that is stored in the first row ,n the SQL table.
How do I make it, that when I hover over one DIV and get the details belonging to that row, not the first row??