Add onmouseover to HyperLinkColumn

  • Thread starter Andy Worral via .NET 247
  • Start date
A

Andy Worral via .NET 247

I would like to add javascript to a HyperLinkColumn of a datagrid so that onmousover the Window.Status = "<MYTEXT>"

As of right now the link is running javascript to open a popup window but I do not want that to be show in the status bar

Thanks
 
E

Eliyahu Goldin

Andy,

You can use ItemDataBound event to add an attribute to each cell in the
column:
e.Item.Cells[0].Attributes["onmouseover"]="window.status='text'";

Eliyahu

Andy Worral via .NET 247 said:
I would like to add javascript to a HyperLinkColumn of a datagrid so that
onmousover the Window.Status = said:
As of right now the link is running javascript to open a popup window but
I do not want that to be show in the status bar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top