Link to home
Start Free TrialLog in
Avatar of crich
crich

asked on

ASp Datagrid Control - Hyperlink Fields

Hi there,
I have an asp:datagrid on a webpage. My problem is that i want one of the fields to be a hyperlink. The hyperlink is always to the same url except for one part if the querystring (which will come from one of the recordset's fields). Unfortunatly i am a novice to asp.net and am using dreamweaver mx. Can anyone show me how to use a part dynamic/part static hyperlink, as dreamweaver only gives you the option of one or the other and i dont want to store the whole string in every database record.

The example column from the data grid is as follows:

 <asp:HyperLinkColumn
        HeaderText="Title"
        Visible="True"
        DataTextField="Title"
        NavigateUrl="http://www.mysite.com?cmd=Retrieve&db=db1&list_uids=14971574&dopt=Abstract"/>

The variable i want to be dynamic is list_uids, which is equal to 14971574 in the above example.

Thanks
Richard
ASKER CERTIFIED SOLUTION
Avatar of jetforce
jetforce

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of crich
crich

ASKER

Excellent and easy answer
Thanks for that!

Richard