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 9259409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:39:06+00:00 2026-06-18T12:39:06+00:00

I have a question regarding the page markup of a hyperlink. I have a

  • 0

I have a question regarding the page markup of a hyperlink. I have a form view on an aspx page which has a datatable bound to it in the code behind. I have some controls on the aspx page that get data bound to them in the markup. I have a hyperlink control that needs one field bound to it in the text property (which I figured out) and one field bound to it in the hyperlink propoerty (which I need help with). I got the page to somewhat accept the markup, but when the link it clicked the link is somehow broken.

Also, can I not use the navigate URL property to navigate to an outside URL? Say, http://WWW.ESPN.COM? I think that is the problem…

<asp:HyperLink runat="server" ID="lnkCustom" NavigateUrl='<%#DataBinder.Eval(Container.DataItem, "WebCustomHyper")%>' Target="_blank" CssClass="weblinks">
                                <%# DataBinder.Eval(Container.DataItem, "WebCustomHyperDesc")%></asp:HyperLink>

Any Ideas?

  • 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-06-18T12:39:07+00:00Added an answer on June 18, 2026 at 12:39 pm

    Also, can I not use the navigate URL property to navigate to an outside URL? Say, http://WWW.ESPN.COM? I think that is the problem…

    Indeed that may very well be the problem. It depends on what the rendered client-side markup looks like. Let’s say, for the sake of argument, that the page is at http://www.example.com/page.aspx. Then if the link looks like this:

    <a href="www.espn.com">click here</a>
    

    Clicking it will try to take the user to:

    http://www.example.com/www.espn.com
    

    Which, of course, won’t work. This is because the value www.espn.com alone doesn’t tell the browser that it should be going to a different location. It’s entirely possible that you have a file on the server called www.espn.com as far as the browser is concerned.

    In order to direct it properly, you need to fully-qualify the URL. Which basically means you need to prepend the protocol prefix. Something more like this:

    <a href="http://www.espn.com">click here</a>
    

    This would fix the link and direct the user to the correct destination.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a question regarding applying a RTRIM on a ASP:Hyperlink statement. The code
Have a question regarding something which has been bugging me for some time now.I'm
I have a question regarding JavaScript and methods by which its code can be
I have a question regarding changing the URL that has some form information but
I have a question regarding a custom validator in my page. The custom validator
So I have a question regarding the best practice for a PHP page inserting
I have a rather strange question regarding urls which point to another url. So,
i have a question regarding partial page loading with AJAX. Suppose that an user
I have question regarding redirection in Grails web-flow. I am in a view state
I have a question regarding a session variable. I have session variable which needs

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.