DataGrid hyperlink field binding?

Discussion in 'ASP .Net' started by =?Utf-8?B?V2hpdG5leSBZaXU=?=, Jun 19, 2006.

  1. I am using a DataGrid, and have bound it to some data (not using the quick
    design way though -- i hard coded it using sql data adapter, command, etc).
    Anyways, I have a column that is a link, and i want it to link to a
    javascript function that i've declared in the same page, but in the markup. I
    set the field type as Hyperlink, and this is how i set it up:

    NavigateUrl: Javascript:showActivityDetails()
    DataNavigateUrlField: ActivityID
    DataNavigateUrlFormatString: Javascript:showActivityDetails({0})

    But when i mouseover that link, in the status bar is only says:

    javascript:showActivityDetails()

    which i'm assuming is that it's not passing in the activityID...even though
    i do in fact have an activityID field in my datagrid.

    any suggestions as to what is going on? Any help is appreciated!

    Thanks
     
    =?Utf-8?B?V2hpdG5leSBZaXU=?=, Jun 19, 2006
    #1
    1. Advertisements

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. jdw
    Replies:
    0
    Views:
    2,284
  2. =?Utf-8?B?TW9ycmlzIE5ldW1hbg==?=

    Datagrid Hyperlink field to play file system wave file help.

    =?Utf-8?B?TW9ycmlzIE5ldW1hbg==?=, Aug 24, 2006, in forum: ASP .Net
    Replies:
    9
    Views:
    5,683
    Guido Helmers
    Sep 11, 2006
  3. davetichenor
    Replies:
    1
    Views:
    1,109
    Eliyahu Goldin
    Oct 30, 2006
  4. Alberto Teixeira

    DataGrid HyperLink Column - How can I put multiple fields in the URL field

    Alberto Teixeira, Jul 29, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    266
    Alberto Teixeira
    Jul 29, 2004
  5. geek-y-guy

    use image in hyperlink field of datagrid?

    geek-y-guy, May 6, 2006, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    309
    Brock Allen
    May 6, 2006
  6. Dave
    Replies:
    0
    Views:
    1,242
  7. Sound
    Replies:
    2
    Views:
    752
    Randy Webb
    Sep 28, 2006
  8. jr
    Replies:
    3
    Views:
    695
Loading...