2

I have strange issue, some my ASP.NET webpage's URL contain '#' sign (pound/number sign).

What is this sign? and how do i get rid of it. I don't need this to appear in my URL and it seems I can't control it.

I have tried Google ... most of the people are asking how to read query strings/data that appear after this sign ... but my question is, that I don't need to see this sign or any extra special characters in my URL.

Please help, and if possible, briefly explain the reason why this sign appears.

Thanks alot.

user402186
  • 489
  • 2
  • 7
  • 17
  • Could we see and example of a URL with it in? – benni_mac_b Jan 20 '12 at 10:51
  • Does it appear on page load? Or is it happening after you are clicking a "javascript link"? – Curtis Jan 20 '12 at 10:52
  • http://localhost/myapplicationname/#.TxlHmIHAOy4 – user402186 Jan 20 '12 at 10:53
  • it appears on page load ... as soon as i hit F5/Ctrl+F5 – user402186 Jan 20 '12 at 10:54
  • @user402186 - are the pages getting loaded with the URL's without the '#' sign ? – Bibhu Jan 20 '12 at 10:54
  • yup they do, but then the sign and the number after it automatically appear on the page load ... for e.g. if type localhost/myapplicationname it loads, and by the time it has loaded it has become localhost/myapplicationname/#.TxlHmIHAOy4 – user402186 Jan 20 '12 at 11:00
  • Can we see the URL rewrite rule? – benni_mac_b Jan 20 '12 at 11:27
  • I have seen AJAX enabled sites that use such hashed values to track the current state of the page and insert them into the browsers history, for example the ASP.NET `ScriptManager` does this if you use the `EnableHistory` property. Does this fit with your website at all? – rrrr-o Jan 20 '12 at 16:55
  • are you asking about this: http://stackoverflow.com/questions/274586/including-an-anchor-tag-in-an-asp-net-mvc-html-actionlink – Thufir Jan 23 '12 at 22:00

0 Answers0