How to do bookmark functionality in ?

While working on project, we will get requirement to bookmark functionality, we can do like this

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""&gt;

<html xmlns=""&gt;
<head runat="server">
<script language="javascript" type="text/javascript">

function addToBookMarks() {
bookmarkurl = ";;
bookmarktitle = "Chandradev Blog";
if (document.all)

window.external.AddFavorite(bookmarkurl, bookmarktitle);
else if (window.sidebar) window.sidebar.addPanel(bookmarktitle, bookmarkurl, ”);



<form id="form1" runat="server">
<asp:Button ID="Button1" runat="server" Text="Click here" OnClientClick="addToBookMarks()" />


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.