S
Steve B.
Hi,
I use a web.sitemap file to create a dynamic menu in my web application.
I want to add an entry that does not navigate but add the page to the user's
favorites.
I added a node like this :
<siteMapNode title="Ajouter cette page aux favoris"
url="javascript:window.external.AddFavorite(location.href, document.title)"
/>
It works fine when rendering the client, however the page that hosts the
menu control generate an error at design time since the node url is not a
relative node.
If I remove the javascript: there is not error in the designer, but at run
time the url is http://myserver/myapp/window.external.AddFavorite(...) which
is not valide.
How can I correctly set the sitemap to avoid both design time and runtime
error ?
Thanks,
Steve
I use a web.sitemap file to create a dynamic menu in my web application.
I want to add an entry that does not navigate but add the page to the user's
favorites.
I added a node like this :
<siteMapNode title="Ajouter cette page aux favoris"
url="javascript:window.external.AddFavorite(location.href, document.title)"
/>
It works fine when rendering the client, however the page that hosts the
menu control generate an error at design time since the node url is not a
relative node.
If I remove the javascript: there is not error in the designer, but at run
time the url is http://myserver/myapp/window.external.AddFavorite(...) which
is not valide.
How can I correctly set the sitemap to avoid both design time and runtime
error ?
Thanks,
Steve