gridview hyperLinkField

Discussion in 'ASP .Net Web Controls' started by ashim, Jul 24, 2006.

  1. ashim

    ashim Guest

    i want a hyperLinkFiled or hyperlinkColumn in my dataview/gridview
    where the hyperlink is a javascript function xyz(p1,p2):

    p1 = Request["x"]; p2= one of the dataset columns;

    please help
     
    ashim, Jul 24, 2006
    #1
    1. Advertising

  2. add a template column that is a linkbutton. Then, when each data row binds
    to the gridview control (GridControl_RowDataBound) do somthing like ...

    ctype(e.row.cells(0).controls(0), LinkButton).attributes.add("OnClick",
    "javascriptfunction()")




    "ashim" <> wrote in message
    news:...
    >i want a hyperLinkFiled or hyperlinkColumn in my dataview/gridview
    > where the hyperlink is a javascript function xyz(p1,p2):
    >
    > p1 = Request["x"]; p2= one of the dataset columns;
    >
    > please help
    >
    >
     
    Ben Schumacher, Jul 24, 2006
    #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. dm1608

    GridView and HyperLinkField

    dm1608, Feb 23, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    4,791
    Darren Kopp
    Feb 23, 2006
  2. SP
    Replies:
    2
    Views:
    9,354
  3. =?Utf-8?B?TWlrZSBSYW5k?=

    GridView HyperLinkField problem...

    =?Utf-8?B?TWlrZSBSYW5k?=, Jan 31, 2007, in forum: ASP .Net
    Replies:
    8
    Views:
    682
    =?Utf-8?B?TWlrZSBSYW5k?=
    Feb 2, 2007
  4. Replies:
    1
    Views:
    876
    bruce barker
    Aug 31, 2007
  5. Peter

    Gridview HyperlinkField question

    Peter, Nov 20, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    1,339
    Peter
    Nov 20, 2007
Loading...

Share This Page