problem with space in url

2 posts, 0 answers
  1. Vlastimil
    Vlastimil avatar
    4 posts
    Member since:
    Jul 2008

    Posted 11 Jan 2011 Link to this post

    Hallo,
    I have problem with spaces in urlI path.
    I have Rad Grid with columns like this:
    <telerik:GridHyperLinkColumn DataTextFormatString="Adres" ItemStyle-ForeColor="Orange"
     DataNavigateUrlFields="s_adresar" UniqueName="s_adresar" DataNavigateUrlFormatString="file://///SomeServer/Some Directory With Spaces/{0}" Target="_blank" HeaderText="Adres" DataTextField="s_adresar">
     </telerik:GridHyperLinkColumn>

    I would like to open file from shared file system in Windows Explorer after click on link in RadGrid, but it doesn't work.
    Right path to directory is //SomeServer/Some Directory With Spaces/
    but rendered path is  //SomeServer/Some%20Directory%20With%20Spaces/
    and  this path is for Windows Explorer unknown. I tried to replace spaces in path ( in DataNavigateUrlFormatString property) with some mark entity but without success.
    Can anyone help me  please?
    Thanks
  2. Prangadj
    Prangadj avatar
    174 posts
    Member since:
    Jan 2008

    Posted 12 Jan 2011 Link to this post

    I do not see codes in the DataNavigateUrlFormatString that take care of url encoded spaces. Ask Google for solutions and apply them for your hyperlinks.

    Prangadj
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top