If it is required to add a facility on the webpage that users can click a button on the website and it will open up bookmark option. Following is the code that will perform this task.
function bookmark(url, description)
if (navigator.appName=='Microsoft Internet Explorer')
alert('This option works with IE only as of now.');
<input type="Button" ID="btnBookMark" onClick="bookmark('http://mypage.aspx','MyWebsite')" value="Bookmark" />
-And if you want it work in IE and firefox as well:function addToBookMarks()
window.external.AddFavorite(location.href,document.title);else if(window.sidebar)window.sidebar.addPanel (document.title,location.href,'');
The ASP.NET Wiki was started by Scott Hanselman in February of 2008. The idea is that folks spend a lot of time trolling the blogs,
googlinglive-searching for answers to common "How To" questions. There's piles of fantastic community-created and MSFT-created content out there, but if it's not found by a search engine and the right combination of keywords, it's often lost.
The ASP.NET Wiki articles moved to CodeProject in October 2013 and will live on, loved, protected and updated by the community.