ScriptManager OnNavigate doesn't always get fired

  • Thread starter Thread starter hhbcw
  • Start date Start date
H

hhbcw

Hi all,

Sorry for reposting this message to this newsgroup. I have already posted
the same message to http://forums.asp.net but haven't received any answer so
far.

I hope someone in here can help me out with this problem:

I have started to use the new history feature of ASP.NET 3.5 SP1.
Everything works fine so far. I can add history points and the back
forward button do their jobs.

But there is still one problem: it doesn't always fire the OnNavigate.

I try to explain it with an example:

- I browse to www.someofmydomains.com
- clicking on a button --> adding one history point (i.e.
www.someofmydomains.com#&&test=ABC)
- bookmark this history point

- opening a new browser
- browse to any other site than the bookmarked one (or even an empty browser
is ok)
- choose the bookedmarked history point
--> the OnNavigate gets fired. Perfect.

But as I said it is not always the case:

- we will use the same bookmark
- open a new window and browse to www.someofmydomains.com
- and select the bookedmarked history point again
--> the event doesn't get fired.

I have further tested and have noticed:

- if I browse i.e. to www.someofmydomains.com/default.aspx
- and choose the bookmarked link again it works too.


So, somehow I get the feeling it works the first time only
if the address is different.

And btw, this problem only occurs when I try to use a
bookmarked link in a current session for the first time
and if the bookmarked url (excluding the everything after
the hash now) and the current site url are the same.

When I get it once running (i.e. by changing from root to default.aspx)
all other bookmarkes that
follow fire the event OnNavigate without any problems.

Have you seen the same behaviour?
Is there something I could do to fix this issue?

Thanks to everyone!

Best regards,

Hans
 
ajax history navigation works by the browser recording a bookmark (#)
navigation (the w3c has a working draft on standardizing this).
unfortunately this does not work in IE (until IE 8.0), so an iframe hack
is used and iframe history is pretty weird. you probably have to live
with this until your users switch to a w3c compliant browser.

-- bruce (sqlwork.com)
 
Hi Bruce,

thank you for your answer.

Should the history feature already work probably with IE 8.0 Beta?
I have downloaded the IE 8 Beta and it behaves the same as the
previous version does.

Furthermore, the same issue can also be reproduced in Firefox.

The back and forward buttons do work "well" but I have problems
when somone wants to add a bookmark/favorite of the current
state of the site, comes back to the site and then chooses a bookmarked
link for the favorites (like described below).

I appriciate all your comments.

Thanks!

Best regards,
Johann
 
Back
Top