Smart Nav and AutoRefresh Problem

V

vbGansta

Hi there.

I am using SmartNavigation="True" in one of my pages and it is working
except for one instance. If I hit the browser refresh, or a button on my
form smart nav works just fine. I also have the page auto refreshing every
60 seconds. When this is fired the page scrolls back to the top. Is there
anyway around this? Thanks for your help.

Joe
 
S

Scott Allen

Perhaps instead of a refresh done with META tags, you could start a
JavaScript timer and do a post back every 60 seconds. With SmartNav
this should preserve the position of the form. Take a look at the
Page.GetPostBackClientEvent to help build the JavaScript.

HTH,
 
V

vbGansta

hey Scott.

I really appreciate your help. I tried to look up the
GetPostBackClientEvent stuff, but I am new to this and I really don't
understand how the JavaScript stuff works yet. Is there anyway you can give
me some more info?

Joe
 
V

vbGansta

Scott,

Those articles pointed me in the right direction. This is all I needed to
accomplish my task:

<script language ="javascript">
window.setTimeout("__doPostBack('btnFetch', ' ')", 60000);
</script>

Thanks for putting up with my ignorance :)

Joe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top