there is main page.on mouse move towards a button pop up opens.now i want to add the parent page to favourites.
for this i have wiritten in the popup page
if (e.CommandName == "url")
{
DataKey data = GridView1.DataKeys[Convert.ToInt32(e.CommandArgument)];
url_id =
Convert.ToInt32(data.Values["url_id"]);LinkButton lnk = (LinkButton)GridView1.Rows[Convert.ToInt32(e.CommandArgument)].FindControl("lnkbtnurl_name");if (lnk.Text == "Favourites")
{
Response.Write(
"<script type=\"text/javascript\">window.close('popup.aspx');</script>");Response.Write("<script type=\"text/javascript\"> window.external.AddFavorite(window.document.location,document.title);</script>");
}
Response.Write(
"<script type=\"text/javascript\">window.open('" + lnk.Text + "','PopUp','width=400, height=400, menubar=no, resizable=no');</script>");
but pop up gets added to the favourite..i want to add the main page to the favourite from the popup page