Hi
Please note I am using User Control and this code is in User Control which I am calling from .aspx page.
if (e.CommandName == "FB")
{
string[] arguments = e.CommandArgument.ToString().Split('|');
ProductID = arguments[0].ToString();
EncrptyProdID = stringToBase64String(ProductID);
ProductName = arguments[1].ToString();
ProdImage = arguments[2].ToString();
ScriptManager.RegisterStartupScript(this, this.GetType(),"Key","window.open('http://www.facebook.com/share.php?u=http://www.mysite.com/Product/" + EncrptyProdID + "','_blank', 'location=yes,width=700,height=400');",true);
}