Solved

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

Posted on 2009-05-03
6
530 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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

Cloud Training Guides

FREE GUIDES: In-depth and hand-crafted Linux, AWS, OpenStack, DevOps, Azure, and Cloud training guides created by Linux Academy instructors and the community.

Question has a verified solution.

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

Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
The viewer will learn how to count occurrences of each item in an array.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

623 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