Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Call Javascript popup from GridView cell

Author  Topic 

jtrapat1
Starting Member

43 Posts

Posted - 2008-07-02 : 22:50:36
I have an asp:GridView with about seven rows across.
One of the cells is a five-digit agencycode, for a long agency name.
I would like to have the user move the mouse over the agencycode cell, and call a javascript function to pass the long agencyname, and display this agencyname in a small popup window, to remind the user of which Agency the code decribes.
Since the long agencyname takes up too much space in the gridview, In the GridView1_RowDataBound event I add the onmouseover and onmouseout events, which will call ("window.open('javascript.htm', 'CustomPopUp',"); to show the agencyname.
Since I already have selected the long agencyname in the query but I leave the boundfield column for long agencyname hidden, Is there some way to pass this long name to a small popup window.
Thanks

jtrapat1
Starting Member

43 Posts

Posted - 2008-07-03 : 15:56:43
I have since found a solution to this problem so we can close this question.
Thanks.
Go to Top of Page
   

- Advertisement -