3.5 .NET C# how do I do a jump within a page?

  • Thread starter Thread starter HibernatingBear
  • Start date Start date
H

HibernatingBear

I've done this before with html, and feel really stupid having to
ask. However, since I've already done a search and come up with no
workable solution on how to do this in an image map, and lost a few
brain cells from head banging in the process, here goes:

I have hotspots on an ImageMap. When the user clicks the hotspot, I
want to navigate to a spot lower in the page.

So far, at the image portion:
<asp:ImageMap ID="MyImageMap" runat="server" ImageUrl="~/img/
myImage.jpg"
style="width: 600px; height: 300px">
<asp:CircleHotSpot AlternateText="hotspotText"
Radius="20" X="460" Y="61" Target="#mySpot"/>
</asp:ImageMap>

Then, down below:
<td colspan="2"><a name="mySpot"><b>This is the correct place:</b> yes!
</a>
<br />

All this code does is give me the same page, top of page. There is no
code in the PageLoad function.

Any help would be greatly appreciated! Thank you!
 
Thanks for the reminder! It's been a while since I've had to look at
the ASP group.

[...]
<asp:ImageMap ID="MyImageMap" runat="server" ImageUrl="~/img/
myImage.jpg"
                style="width: 600px; height: 300px">
                <asp:CircleHotSpot AlternateText="hotspotText"
                    Radius="20" X="460" Y="61" Target="#mySpot"/>
</asp:ImageMap>
[...]
Any help would be greatly appreciated!  Thank you!

Your question is really an ASP.NET question, and you'd be better of  
posting it there.

That said, as near as I can tell with my very limited knowledge of ASP.NET  
is that you should be setting the NavigateUrl property to "#mySpot", not  
the Target property.  Target refers to the window or frame that will be 
affected by clicking on the link, not the location to which the browser  
should navigate.

If that's not the answer, you should post your question in the ASP.NET  
newsgroup so that you find someone who actually knows what they're talking  
about.  :)

Pete
 
Back
Top