Setting target of hyperlinkcolumn programmatically

Discussion in 'ASP .Net Datagrid Control' started by Brian Barnes via .NET 247, Sep 2, 2004.

  1. I am having trouble determining if I can set the target property of a hyperlinkcolumn based on the contents of field in a returned SQL query that is bound to a datagrid.

    In my SQL table I'm storing different words in a DocumentType field, but I would like the word "Link" to trigger the target to go to "_blank".

    I've tried many ideas including the OnItemDataBound event and thought changing the contents of the field from "Link" to "_self" or "_blank" might work too. Anyone have any suggestions?

    --------------------------------
    From: Brian Barnes

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

    <Id>9YIbUntEc06oSn9wTrUT1A==</Id>
     
    Brian Barnes via .NET 247, Sep 2, 2004
    #1
    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. Justnew
    Replies:
    3
    Views:
    2,152
    Chad Z. Hower aka Kudzu
    Feb 17, 2004
  2. Justnew
    Replies:
    0
    Views:
    338
    Justnew
    Feb 17, 2004
  3. Steve Harrison

    Dynamically setting the target frame

    Steve Harrison, May 14, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    437
    Yunus Emre ALPĂ–ZEN [MCAD.NET]
    May 14, 2005
  4. mohit
    Replies:
    0
    Views:
    605
    mohit
    Jan 23, 2008
  5. Ben Fidge

    Setting alt text in hyperlinkcolumn

    Ben Fidge, Nov 12, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    167
    Michael Tkachev
    Nov 13, 2003
Loading...

Share This Page