Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7588643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:58:23+00:00 2026-05-30T19:58:23+00:00

Hope you are having a nice day. I am developing a gridview for a

  • 0

Hope you are having a nice day.

I am developing a gridview for a list of songs with a hyperlink field like below. I left unnecessary codes by the way. The purpose of hyperlink field is for user to download songs. I am using visual studio 2010 and I am still using development server such as http://Localhost:xxxx/mypage.aspx. So I have to update the hyperlink field everytime I run this page in order to keep the link correct. I understand once i put on the live server, i just need to put the domain and this problem is fixed but I am wondering if there is a way to dynamically map the path of DataNavigateUrlFormatString to the development server URL so that I don’t need to keep changing while I am on development server.

Thanks a lot.

    <asp:GridView>
    <Columns>
    <asp:BoundField DataField="Song_Name" HeaderText="Song_Name" SortExpression="Song_Name" />

    <asp:HyperLinkField DataNavigateUrlFields="Song_Location" 
     DataNavigateUrlFormatString="http://localhost:6686/RioMusic/Uploads/{0}" 
     DataTextField="Song_Name" HeaderText="Download" />
    </Columns>
    </asp:GridView>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T19:58:24+00:00Added an answer on May 30, 2026 at 7:58 pm

    Can you just use a relative link? I.e.:

    Uploads/{0}
    

    (This will be relative to the page displaying the link.)

    Or, if you wish to specify a url relative from the root of your site:

    ~/RioMusic/Uploads/{0}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hope you are having a great day. I have a page where I let
I hope you all have a nice day. I want to write a web
hope you're having a good day. I have been programming a IRC chatbot in
hope you're having a good day. Another socket issue, another day :) I finally
Hope you're having a good Friday and stuff... okay, so here's my question: All
I hope someone can help here, we're having an incredibly annoying time with Visual
i'm trying to set up the selenium-maven-plugin and having some difficulties i hope somebody
Hope this is not a dupe. I would like to be able to do
I'm having trouble with double entries in my django database and hope for your
I hope i'm missing something obvious, but I'm having some troubles defining a method

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.