Add onmouseover to HyperLinkColumn

Discussion in 'ASP .Net Datagrid Control' started by Andy Worral via .NET 247, Jun 15, 2004.

  1. 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

    -----------------------
    Posted by a user from .NET 247 (http://www.dotnet247.com/)

    <Id>c7+1WM2siE+O4T+YoEnNjQ==</Id>
    Andy Worral via .NET 247, Jun 15, 2004
    #1
    1. Advertising

  2. 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" <> wrote in message
    news:...
    > 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
    >
    > -----------------------
    > Posted by a user from .NET 247 (http://www.dotnet247.com/)
    >
    > <Id>c7+1WM2siE+O4T+YoEnNjQ==</Id>
    Eliyahu Goldin, Jun 15, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dmitri Manushin

    send more than 1 parametr from hyperLinkColumn?

    Dmitri Manushin, Aug 13, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    590
    Dmitri Manushin
    Aug 13, 2003
  2. SStory
    Replies:
    3
    Views:
    2,407
    SStory
    Oct 30, 2003
  3. Morten
    Replies:
    3
    Views:
    1,522
    Morten
    Nov 3, 2003
  4. vtreddy
    Replies:
    0
    Views:
    2,045
    vtreddy
    Nov 6, 2003
  5. speedbird
    Replies:
    0
    Views:
    107
    speedbird
    Mar 24, 2008
Loading...

Share This Page