Use Hyperlink if you want to “link to some place” in your application (this means that it fires a history change event).
Use Anchor if you want to set a link to the site of your application.
Hyperlink link = new Hyperlink("link to foo", "foo"); //text would be "link to foo", would change your url to yourSite.html#foo Anchor anchor = new Anchor("Link to bar", "www.bar.com"); //text would be "link to bar", would redirect you to "www.bar.com"
Chris boesing
source share