Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 561
  • Last Modified:

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

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
Davey01
Asked:
Davey01
  • 3
  • 3
1 Solution
 
OriNetworksCommented:
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
 
Davey01Author Commented:
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
 
OriNetworksCommented:
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
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
Davey01Author Commented:
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
 
OriNetworksCommented:
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
 
Davey01Author Commented:
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

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now