Solved

Linking from one .aspx page to a section of another .aspx page

Posted on 2009-05-03
6
523 Views
Last Modified: 2012-05-06
I am working on a site that was originally done in .aspx.....I have been editing the site for some time...using regular html code on those pages, without any problems. I am trying to link from a page, to a specific section of another page using the typical anchors.
<a href="page.aspx#nameoftarget">Linked text</a>
targeted page is: <a id="nameoftarget"></a>
This works in firefox....even the new google chrome....but IE7 (tested on different machines)failes to work..I googled linking from one page to a section of another....and all is commented as using anchors the way I have.
The Website is www.palamountains.net
the home page next to the calendar shows the links and the target page is: www.palamountains.net/news/Default.aspx
I am wondering if the problem is that IE7 doesn't like these links or recognize them on a .aspx page......
I am even using the <a id.....> rather than <a name.....> on the target page....but I have done the <a name....> as well and the same problem exists.
0
Comment
Question by:Davey01
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 17

Expert Comment

by:OriNetworks
ID: 24292138
Have you tried both id and name at the same time? Also do you have anything that takes focus when the page is loaded? Like some pages focus on the text box when the page loads.
0
 

Author Comment

by:Davey01
ID: 24292184
Yes, I did both ID and Name.....if you recently have seen the code...it is not wrapped around anything...it was wrapped around some title's next to the photos on that page...which reside in a table....but the style sheet was treating that text like a link, making the text a default purple...so I simply place the anchor next to the title's wrapped around nothing, but still within that table.  That works just the same with firefox....and chrome...same reults with IE7 and 8 though...same as when it was wrapped around the title's.
Thanks for the assistance...
0
 
LVL 17

Expert Comment

by:OriNetworks
ID: 24292355
Could you provide a full link with anchor that you believe isnt working?

I tried http://www.palamountains.net/news/Default.aspx#rolex and it does work.
0
Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

 

Author Comment

by:Davey01
ID: 24294493
That is one of the valid links. You say that it is working....and it does work on mozilla's firefox....it may work on IE6....but I tried IE7 and IE8 and no go, it doesn't jump to the section on the page....it simply jumps to the page.  I just tried another computer (my work computer) and it doesn't work either.  So something is going on with IE in several different states, that prevents this from working properly....IE7 or 8 could be displaying it properly on another machine?? but for some reason, it isn't working on these.
http://www.palamountains.net is the home page.  All of the links next to the calendar points to the page:
http://www.palamountains.net/news/Default.aspx
The anchors on this page are #kentucky, #rolex, #barkinthepark, #grand, #2010
so: http://www.palamountains.net/news/Default.aspx#kentucky etc......should work and does work on mozilla, just not the three (3) machines that I have tested using IE 7 & 8....these machines also have the latest service packs and updates etc.....
I was at first believing something may have been wrong with the code, but apparently not....then I thought it could be that the pages are .aspx and that could be causing a problem with IE.  
0
 
LVL 17

Accepted Solution

by:
OriNetworks earned 500 total points
ID: 24300520
I am using IE8 and links appear to work correctly and go the sections of the page as it should be. After further reading it appears that this is a bug in IE7, I saw nothing referencing IE8. But even when I try IE8 in IE7 compatibility mode it still works.

SInce you are using flash I cant really see the source but if your link addresses are relative like /news/Default.aspx#kentucky then you can try to change it to http://www.palamountains.net/news/Default.aspx#kentucky to give it an absolute path and see if that works. I believe the bug comes from preventing XSS (cross site script attack) I would probably try changing absolute paths to relative and vice versa to see if anything works.
0
 

Author Comment

by:Davey01
ID: 24306968
Yes, thank you....I had absolute paths linking to the page anchors, apparently that was the problem for IE, on these machines anyway....I changed to relative paths and IE is now happy.....and this did not disrupt any of the other browsers. Thanks for your help.....
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question