protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            object[] objTribute = new object[5];
            if (Request.QueryString["TributeId"] != null && Request.QueryString["TributeId"].ToString() != string.Empty)
            {
                int tributeId = int.Parse(Request.QueryString["TributeId"].ToString());
                TributeManager tributeMgr = new TributeManager();
                objTribute = tributeMgr.GetTributeDetailOnTributeId(tributeId);

                Session["TributeId"] = objTribute[2] != null ? Convert.ToString(objTribute[2]) : string.Empty;
            }
        }
    }
    //public int _packageId;
    //public string _TributeType = string.Empty;
    //private string _TributURL = string.Empty;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            object[] objTribute = new object[5];
            if (Request.QueryString["TributeId"] != null && Request.QueryString["TributeId"].ToString() != string.Empty)
            {
                int tributeId = int.Parse(Request.QueryString["TributeId"].ToString());
                TributeManager tributeMgr = new TributeManager();
                objTribute = tributeMgr.GetTributeDetailOnTributeId(tributeId);

                Session["TributURL"] = objTribute[2] != null ? Convert.ToString(objTribute[2]) : string.Empty;
                Session["TributeType"] = objTribute[3] != null ? Convert.ToString(objTribute[3]).ToLower().Replace("new baby", "newbaby") : string.Empty;
                Session["PackageId"] = objTribute[4] != null ? Convert.ToInt32(objTribute[4]) : 0;

            }
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            object[] objTribute = new object[5];
            if (Request.QueryString["TributeId"] != null && Request.QueryString["TributeId"].ToString() != string.Empty)
            {
                int tributeId = int.Parse(Request.QueryString["TributeId"].ToString());
                TributeManager tributeMgr = new TributeManager();
                objTribute = tributeMgr.GetTributeDetailOnTributeId(tributeId);

                Session["TributURL"] = objTribute[2] != null ? Convert.ToString(objTribute[2]) : string.Empty;
                Session["TributeType"] = objTribute[3] != null ? Convert.ToString(objTribute[3]).ToLower().Replace("new baby", "newbaby") : string.Empty;
                Session["PackageId"] = objTribute[4] != null ? Convert.ToInt32(objTribute[4]) : 0;

                if (Request.QueryString["TabName"] != null && Request.QueryString["TabName"].ToString() != string.Empty)
                {
                    _tabName = Request.QueryString["TabName"].ToString();
                    if (_tabName.Equals("Notes"))
                    {
                        divNotes.Visible = true;
                    }
                    else if (_tabName.Equals("Events"))
                    {
                        divEvents.Visible = true;
                    }
                    else if (_tabName.Equals("Photos"))
                    {
                        divPhotoAlbum.Visible = true;
                    }
                    else if (_tabName.Equals("Videos"))
                    {
                        divVideo.Visible = true;
                    }
                    else if (_tabName.Equals("UpgradePhoto"))
                    {
                        divUpgradeFullView.Visible = true;
                        if (Session["PhotoId"] != null)
                            int.TryParse(Session["PhotoId"].ToString(), out photoId);
                    }
                    else if (_tabName.Equals("UpgradeAlbum"))
                    {
                        divUpgradeAlbum.Visible = true;
                        if (Session["PhotoAlbumId"] != null)
                            int.TryParse(Session["PhotoAlbumId"].ToString(), out photoAlbumId);
                    }
                }
                if (Request.QueryString["TributeUrl"] != null && Request.QueryString["TributeUrl"].ToString() != string.Empty)
                    _tributeUrl = Request.QueryString["TributeUrl"].ToString();
            }
        }
    }