Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. problems with asp:hyperlink

problems with asp:hyperlink

Scheduled Pinned Locked Moved Web Development
questionhtmltutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    livez
    wrote on last edited by
    #1

    Hello! I´ve got a few problems with the asp:hyperlink control. 1. with anchors one can reference html-elements on a page like this for an example a href="#myDiv"> test /a To make the browser scroll to the element. If I try the same with an asp:hyperlink it adds the entire url and then concatenates #myDiv at the end, resulting in that the browser no longer scrolls to the element. How do I stop this? 2. I´ve got an anchor with a really strange-looking url (used for a thickbox): #TB_inline?height=260&width=416&inlineId=hiddenlogin&modal=true When I convert the anchor to an asp:hyperlink it adds #TB_inline at the end of the url which makes the url unusable. How do I prevent this from happening?

    S 1 Reply Last reply
    0
    • L livez

      Hello! I´ve got a few problems with the asp:hyperlink control. 1. with anchors one can reference html-elements on a page like this for an example a href="#myDiv"> test /a To make the browser scroll to the element. If I try the same with an asp:hyperlink it adds the entire url and then concatenates #myDiv at the end, resulting in that the browser no longer scrolls to the element. How do I stop this? 2. I´ve got an anchor with a really strange-looking url (used for a thickbox): #TB_inline?height=260&width=416&inlineId=hiddenlogin&modal=true When I convert the anchor to an asp:hyperlink it adds #TB_inline at the end of the url which makes the url unusable. How do I prevent this from happening?

      S Offline
      S Offline
      Shog9 0
      wrote on last edited by
      #2

      livez wrote:

      I´ve got a few problems with the asp:hyperlink control.

      Huh... i wonder where one might find answers to questions on such things...[^] :rolleyes: Before you head over there though, take a look at your post: it's unreadable. If you plan to be doing even casual web development, you should really learn how to escape things like angle brackets. Failing that, use the checkbox titled "Ignore HTML tags in this message (good for code snippets)" to push your post through as plain text.

      Citizen 20.1.01

      'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups