Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

how to jump to next anchor location without reload page in asp.net

Posted on 2006-03-27
4
Medium Priority
?
952 Views
Last Modified: 2008-01-16
Hi
 I have an asp.net page, aspx and aspx.cs to display bunch of images.
I like to jump to next or previous image by adding anchor like scroll up/down.
I am using javascrip to jump to any anchor which is working fine by:
function goNextAnchor(where)
{
    window.location.hash = where;
    // or window.location.href = "#" + where;
}

But problem is page reloading. how can I just jumpt to next anchor without reloading the page again because page is not static build by cs code. Due to reload, page is jumped to the top instead desire anchor location.

Can someone help me?
Thanks,

0
Comment
Question by:young_nacs
  • 2
2 Comments
 
LVL 15

Expert Comment

by:Tomeeboy
ID: 16302669
Just use the standard page anchors with no javascript...

<a name="anchor1">

<a href="#anchor1">
0
 
LVL 15

Accepted Solution

by:
Tomeeboy earned 2000 total points
ID: 16302683
Sorry, the link would be like this:

<a href="#anchor1">Jump to Anchor 1</a>
0

Featured Post

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.

Question has a verified solution.

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

Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
By following these Magento e-commerce development tips, you can increase your website's conversion and profitability. Read this post for more details.
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses
Course of the Month15 days, 4 hours left to enroll

578 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