Ejemplo n.º 1
0
        protected void GridView_RowCommand(Object sender, GridViewCommandEventArgs e)
        {
            if (e.CommandName.Equals("Analytics")) //Analytics
            {
                FacebookBizProcess fbBiz = new FacebookBizProcess();
                Response.Redirect("Analytics/SonetReachAnalyticsMain.aspx?CustomerName=" + SessionData.Customer.SCustomerUserName + "&Appname=" + fbBiz.GetAppName(e.CommandArgument.ToString()));
            }
            else //Edit a Campaign
            {
                //Determine type of Campaign- TemplatePage
                FacebookBizProcess fbBiz = new FacebookBizProcess();

                string templatePageToCall = string.Empty;
                string appName = fbBiz.GetAppName(e.CommandArgument.ToString());
                templatePageToCall = fbBiz.GetTemplatePage(appName);

                Response.Redirect(templatePageToCall + "?CustomerName=" + SessionData.Customer.SCustomerUserName + "&Appname=" + appName + "&Maint=T");
            }
        }