Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > DataGrid hyperlink field binding?

Thread Tools

DataGrid hyperlink field binding?

Posts: n/a
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:


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!

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
javascript validation for a not required field, field is onlyrequired if another field has a value jr Javascript 3 07-08-2010 10:33 AM
How to add a hyperlink column to datagrid - where only one value is a hyperlink davetichenor ASP .Net 1 10-30-2006 02:57 PM
How to add a hyperlink column to datagrid - where only one value is a hyperlink Dave ASP .Net Datagrid Control 0 10-21-2006 07:48 PM
1.Enter space bar for field names and save the field.The field shoud not get saved and an alert should be there as"Space bars are not allowed" Sound Javascript 2 09-28-2006 02:43 PM
mailto in hyperlink field of datagrid jdw ASP .Net 0 03-29-2006 10:21 PM