young_nacs
asked on
how to jump to next anchor location without reload page in asp.net
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,
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,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<a name="anchor1">
<a href="#anchor1">