Results 1 to 4 of 4

Thread: [RESOLVED] [2005] Baffling hyperlink issue

  1. #1
    Banned timeshifter's Avatar
    Join Date
    Mar 04
    Location
    at my desk
    Posts
    2,467

    Resolved [RESOLVED] [2005] Baffling hyperlink issue

    Alright.. two different user controls, both in use on the same master page. The nav user control on the left creates its' hyperlinks as such:
    Code:
    <asp:HyperLink NavigateUrl='<%# "http://" & Request.ServerVariables("SERVER_NAME") & "/products.aspx?DEPT=" & eval("ID") & "&NAME=" & Eval("Text") %>' ID="hyp2" Text='<%#Eval("Text") %>' runat="server"></asp:HyperLink>
    The header creates them with this:
    Code:
    <asp:HyperLink ID="hypCheck" NavigateUrl='<%#"http://" & Request.ServerVariables("SERVER_NAME") & "/checkorder.aspx" %>' runat="server" Text="Check My Order"></asp:HyperLink>
    Now the fun question.. why does the first work perfectly and the second doesn't even create an href on the rendered <a> tag?

  2. #2
    Banned timeshifter's Avatar
    Join Date
    Mar 04
    Location
    at my desk
    Posts
    2,467

    Re: [2005] Baffling hyperlink issue

    Or I could just use a different method of accomplishing the same thing... SEO is a pain in the rear...

  3. #3
    ASP.NET Moderator mendhak's Avatar
    Join Date
    Feb 02
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,174

    Re: [RESOLVED] [2005] Baffling hyperlink issue

    You're not using enough inline code.

  4. #4
    Banned timeshifter's Avatar
    Join Date
    Mar 04
    Location
    at my desk
    Posts
    2,467

    Re: [RESOLVED] [2005] Baffling hyperlink issue

    I know... I need to fix that problem.

Posting Permissions

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