Click here to Skip to main content
15,908,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all
i have adata reader that i fill in the run time which includes (id, name , address ) of the employees.
i want to mouseover on any one of them and appears the data into asmall java script popup.
the question is how to take the id from that datareader while you mouse over on it.
any help, please?
thanks

[edit]removed childish extra e's from the word please.[/edit]
Posted
Updated 20-Feb-11 4:40am
v2
Comments
Vigneshb6 20-Feb-11 9:53am    
Place it in sessions and Retrieve it
moon2011 20-Feb-11 13:18pm    
thanks for your reply, but i want on value according to what i mouse over to make it in another code not afixed value.

You can't mouse over a DataReader: it isn't a visible control.
You would be better off binding the database output into a DataGridView or similar and working from there...
 
Share this answer
 
Comments
moon2011 20-Feb-11 13:13pm    
thanks for your reply but,
i don't want to mouse over adatatable. iwant to mouse on acolumn which if filled by datareader.can i do that?
Sergey Alexandrovich Kryukov 20-Feb-11 16:54pm    
Good point, a 5.
I always though invisible control is a completely stupid invention: it is designed to please lamers by making them feel that they use "graphical programming" instead of "coding" which makes it "easier". In real life there no saved time, just the opposite, don't you think so?

Graphical design can be good when something graphical is designed, like alignment, and even this is not always so.

--SA
Anser 1 is right, data reader is not a visible control

You can use DataSet, fil it with required data

and then Bound the DataSet to DataGridView

e.g

C#
DataGridView.Source = DataSet.Tables[0];


Hope it Works for U
 
Share this answer
 
Comments
moon2011 20-Feb-11 13:11pm    
thanks for your reply, but i didn't make agridview but i displayed that information using divs in the runtime by reading from adatareader. But Now i have morw that 20 displayed row , i want when i mouse on the "id" column know that id to use it in another function. You got it?
Did you mean GridView? Then, this[^] might help.
 
Share this answer
 
Comments
moon2011 20-Feb-11 13:14pm    
Thanks for your reply, but i didn't want it in grid view but i made it using divs filling in run time using datareader.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900