Q:

How do I check if a page is bookmarked

Without resorting to using an ActiveX or some other kind of client side coding:
Is it possible to determine if a visitor to a website arrived to a page via his bookmarks or the home page?
Personally I think its impossible, but I would like to be sure or proven wrong.
The way I am doing something like this at the moment is:
Request.UrlReferrer

If I don't find anything there, I currently deduce the user had me bookmarked.

A:

Not a foolproof way. But, you can set the bookmark to have a querystring.
e.g. stackoverflow.com/?bmark=y
And on server side, you can check for this.

A:

Short answer, no.
Long answer, not in a portable foolproof manner.

A:

Same short answer as Pax.
Long answer... unfortunately, it is possible to some extent in IE. You can use the saveFavorite persistence behavior to try to store some data and then see if you get it back later. If you do, your page load was from a bookmark.
You can also detect whether your page is the user's homepage - though this doesn't necessarily mean that they arrived at your page using that method - using the isHomePage method on the homePage behavior.
Please don't, though. It's violently horrible. IE's “default behaviors” are an abomination unto the Web.

