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. ASP.NET
  4. MVC 4 and WebForm Application: # symbol is appearing in URL

MVC 4 and WebForm Application: # symbol is appearing in URL

Scheduled Pinned Locked Moved ASP.NET
questioncssasp-netdatabasecryptography
2 Posts 1 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.
  • D Offline
    D Offline
    David Mujica
    wrote on last edited by
    #1

    I have a MVC 4 application which I've added some administrative pages implemented as WebForms. The application starts on the Home controller, Index view, where I have a link to one of my Admin pages.

    <a href="~/AdminUtils/WebForm1.aspx" title="Form 1">Webform1 Here </a>

    The link works correctly because my page is redirected to the Webform1.aspx page. The problem is that the resulting URL I see in my browser is: http://localhost:63163/#/AdminUtils/WebForm1.aspx[^] Notice that there is a # (hash) symbol in the URL. The problem I'm having is that I have a 3rd party Grid on that page which is not operating correctly. If I manually change the URL to remove the # symbol, then the grid works perfectly. Anybody know why this # symbol is showing up in my URL ? How can I get rid of it ? Thanks.

    D 1 Reply Last reply
    0
    • D David Mujica

      I have a MVC 4 application which I've added some administrative pages implemented as WebForms. The application starts on the Home controller, Index view, where I have a link to one of my Admin pages.

      <a href="~/AdminUtils/WebForm1.aspx" title="Form 1">Webform1 Here </a>

      The link works correctly because my page is redirected to the Webform1.aspx page. The problem is that the resulting URL I see in my browser is: http://localhost:63163/#/AdminUtils/WebForm1.aspx[^] Notice that there is a # (hash) symbol in the URL. The problem I'm having is that I have a 3rd party Grid on that page which is not operating correctly. If I manually change the URL to remove the # symbol, then the grid works perfectly. Anybody know why this # symbol is showing up in my URL ? How can I get rid of it ? Thanks.

      D Offline
      D Offline
      David Mujica
      wrote on last edited by
      #2

      Ah ... the problem was being caused by jQuery Mobile. The solution was to make the link like this ... Notice the rel="external"

      <a href="~/AdminUtils/WebForm1.aspx" rel="external" title="Form 1">Webform1 Here </a>

      I found the answer here ... http://stackoverflow.com/questions/9737925/jquery-mobile-urls-add-tag-which-breaks-forms-in-internet-explorer[^]

      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