/// <summary>
        /// WCF RemoveCampaign
        /// </summary>
        /// <param name="iItem"></param>
        /// <param name="iFileID"></param>
        /// <returns></returns>
        private string RemoveCampaign(string[] iItems, int iFileID)
        {
            string         ReturnMessage = string.Empty;
            ServiceManager sm            = new ServiceManager();
            int            iItem         = 0;

            foreach (var item in iItems)
            {
                if (int.TryParse(item, out iItem))
                {
                    using (LP2ServiceClient service = sm.StartServiceClient())
                    {
                        RemoveCampaignRequest req = new RemoveCampaignRequest();
                        req.hdr = new ReqHdr();
                        req.hdr.SecurityToken = "SecurityToken"; //todo:check dummy data
                        req.hdr.UserId        = this.CurrUser.iUserID;
                        req.CampaignId        = iItem;
                        req.FileId            = iFileID;
                        RemoveCampaignResponse respone = null;
                        try
                        {
                            respone = service.RemoveCampaign(req);
                            if (respone.hdr.Successful)
                            {
                                ReturnMessage = "";
                            }
                            else
                            {
                                ReturnMessage = respone.hdr.StatusInfo;
                            }
                        }
                        catch (System.ServiceModel.EndpointNotFoundException)
                        {
                            string sExMsg = string.Format("Exception happened when RemoveCampaign (FileID={0}): {1}", iFileID, "Marketing Manager is not running.");
                            LPLog.LogMessage(LogType.Logerror, sExMsg);
                            ReturnMessage = sExMsg;
                            return(ReturnMessage);
                        }
                        catch (Exception ex)
                        {
                            string sExMsg = string.Format("Exception happened when RemoveCampaign (FileID={0}): {1}", iFileID, ex.Message);
                            LPLog.LogMessage(LogType.Logerror, sExMsg);
                            ReturnMessage = sExMsg;
                            return(ReturnMessage);
                        }
                    }
                }
            }
            return(ReturnMessage);
        }
        protected void lbtnRemove_Click(object sender, EventArgs e)
        {
            string[]   arrIds  = this.hiCheckedIds.Value.Split(new char[] { ',' });
            List <int> listIds = new List <int>();

            foreach (string str in arrIds)
            {
                int nTemp = 0;
                if (!int.TryParse(str, out nTemp))
                {
                    nTemp = 0;
                }
                if (nTemp > 0)
                {
                    listIds.Add(nTemp);
                }
            }

            if (listIds.Count > 0)
            {
                try
                {
                    ServiceManager sm = new ServiceManager();
                    using (LP2ServiceClient service = sm.StartServiceClient())
                    {
                        ReqHdr hdr;
                        RemoveCampaignRequest uReq = new RemoveCampaignRequest();
                        hdr        = new ReqHdr();
                        hdr.UserId = CurrUser.iUserID;

                        uReq.hdr        = hdr;
                        uReq.CampaignId = listIds[0];

                        RemoveCampaignResponse uResponse;
                        uResponse = service.RemoveCampaign(uReq);
                        if (uResponse.hdr.Successful)
                        {
                            MarketingCampaignsManager.RemoveAutoCampaigns(listIds.ToArray());
                            BindGrid();
                        }
                        else
                        {
                            PageCommon.AlertMsg(this, "Failed to remove campaign, error info: " + uResponse.hdr.StatusInfo);
                            LPLog.LogMessage(LogType.Logerror, "Failed to remove campaign, error info:" + uResponse.hdr.StatusInfo);
                            return;
                        }
                    }
                }
                catch (System.ServiceModel.EndpointNotFoundException ee)
                {
                    LPLog.LogMessage(ee.Message);
                    PageCommon.AlertMsg(this, "Failed to remove campaign, reason: Marketing Manager is not running.");
                    return;
                }
                catch (Exception ex)
                {
                    PageCommon.AlertMsg(this, "Failed to remove campaign, exception info: " + ex.Message);
                    LPLog.LogMessage(LogType.Logerror, "Failed to remove campaign, exception info: " + ex.Message);
                    return;
                }
            }
        }