public void RetrieveCampaign()
        {
            try
            {
                objCampaign = new Campaign();
                objBL_CreateCampaign = new BL_CreateCampaign();
                lstCampaign = objBL_CreateCampaign.SelectCampaignListbasedonid(Convert.ToInt32(HttpUtility.UrlDecode(Request.QueryString["CampId"]).ToString()));

                if (lstCampaign.Count > 0)
                {
                    txtCampaignName.Value = lstCampaign[0].CampaignName;
                    txtTitle.Value = lstCampaign[0].Title;

                    if(lstCampaign[0].FromName != null)
                        FromName.Value = lstCampaign[0].FromName;
                    if (lstCampaign[0].Emailid != null)
                        EmailID.Value = lstCampaign[0].Emailid;
                }
            }
            catch (Exception ex)
            {
                New_EmailCampaign.App_Code.GlobalFunction.StoreLog("CampaignEdit.aspx:RetrieveCampaign() - " + ex.Message);
            }
        }
        private void RetrieveCampaigndetails()
        {
            try
            {
                objCampaign = new Campaign();
                objBL_CreateCampaign = new BL_CreateCampaign();
                lstCampaign = objBL_CreateCampaign.SelectCampaignListbasedonid(Convert.ToInt32(Session["CampgnID"].ToString()));

                if (lstCampaign.Count > 0)
                {
                    txtCampaignName.Value = lstCampaign[0].CampaignName;
                    txtTitle.Value = lstCampaign[0].Title;

                    if (lstCampaign[0].FromName != null)
                        FromName.Value = lstCampaign[0].FromName;
                    if (lstCampaign[0].FromName != null)
                        EmailID.Value = lstCampaign[0].Emailid;
                }
            }
            catch (Exception ex)
            {
                New_EmailCampaign.App_Code.GlobalFunction.StoreLog("CreateCampign.aspx:RetrieveCampaigndetails() - " + ex.Message);
            }
        }