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. 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. jdw
    Replies:
    0
    Views:
    2,171
  2. davetichenor
    Replies:
    1
    Views:
    914
    Eliyahu Goldin
    Oct 30, 2006
  3. Dave
    Replies:
    0
    Views:
    1,002
  4. Sound
    Replies:
    2
    Views:
    500
    Randy Webb
    Sep 28, 2006
  5. jr
    Replies:
    3
    Views:
    499
Loading...

Share This Page