This is a migrated thread and some comments may be shown as answers.

Url Encoding and decoding in Grid hyperlink column

0 Answers 166 Views
Grid
This is a migrated thread and some comments may be shown as answers.
bharat kumar
Top achievements
Rank 1
bharat kumar asked on 18 Mar 2011, 02:18 PM

Hi,

i have a grid with hyperlink column and which open the download.aspx page and file.
 <telerik:GridHyperLinkColumn
                                            DataNavigateUrlFields="FilePath" 
                                            DataTextField="FileName" 
                                            DataNavigateUrlFormatString="{0}" 
                                            Visible="true"
                                            HeaderText="File Name"
                                            Target="_blank"
                                            HeaderStyle-Width="300px"
                                        >
                                        </telerik:GridHyperLinkColumn>

now here "FilePath"  field is coming from db which is as follow...Test&Doc
but the querystring passing to downlaod.aspx page is only Test
i cannot able to do HttpUtility.UrlEncode as it is not supported.

if i write the column as  DataNavigateUrlFields=HttpUtility.UrlEncode("FilePath")

it gives error and not working,....


please help.


No answers yet. Maybe you can help?

Tags
Grid
Asked by
bharat kumar
Top achievements
Rank 1
Share this question
or