I have binded a datagridview with the database and I am trying to set datanavigateurlfields property.I am able to set value when value directly comes from database,but I wanted to concatenate some constant string like “edit_profile.aspx+?uid”+[value from database],now when I try to add “edit_profile.aspx+?uid” this to the url in double quotes it is treating this string as database column,and when I try to put this value is single quote it gave me parser error.
Here is my code:
<Columns>
<asp:hyperlinkfield datatextfield="heading"
datanavigateurlfields="heading"
headertext="Title"
target="_blank"
/>
I am trying to concatenate some value with the “heading” in datanavigateurlfields.Please tell me how I can achieve this.
you can do like this….
would you pls go through this link for more info
OR