Results 1 to 3 of 3

Thread: setting a hyperlinkfield

  1. #1

    Thread Starter
    Fanatic Member davebat's Avatar
    Join Date
    Dec 2002
    Posts
    727

    setting a hyperlinkfield

    Im using the dataNavigateUrlFields property of a hyperlinkfield in a gridview to set the link to a field from my database. In my database however I have a folder/folder/filename without the preceding dns.

    How do i get .net to go back one folder when it automatically inserts the rest of the url for me?

  2. #2
    Code Monkey wild_bill's Avatar
    Join Date
    Mar 2005
    Location
    Montana
    Posts
    2,993

    Re: setting a hyperlinkfield

    Usualy you can use a double period to climb up the directory tree, like this for one folder back ../myfile.txt or this for two folders back ../../myfile.txt

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: setting a hyperlinkfield

    Prepend ~/ to the beginning of the string.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width