public void SaveTickerItem(TickerInfo objInf)
        {
            TickerProvider objP = new TickerProvider();
            objP.SaveTickerItem(objInf);
            

        }
        public void SaveTickerItem(TickerInfo objInf)
        {
            List<KeyValuePair<string, object>> Parameter = new List<KeyValuePair<string, object>>();
            Parameter.Add(new KeyValuePair<string, object>("@TickerNews", objInf.TickerNews));
            Parameter.Add(new KeyValuePair<string, object>("@StartDate", objInf.StartDate));
            Parameter.Add(new KeyValuePair<string, object>("@EndDate", objInf.EndDate));
            Parameter.Add(new KeyValuePair<string, object>("@AddedBy", objInf.AddedBy));
            Parameter.Add(new KeyValuePair<string, object>("@UpdatedBy", objInf.UpdatedBy));
            Parameter.Add(new KeyValuePair<string, object>("@PortalID", objInf.PortalID));
            Parameter.Add(new KeyValuePair<string, object>("@StoreID", objInf.StoreID));
            Parameter.Add(new KeyValuePair<string, object>("@IsActive", objInf.IsActive));
            Parameter.Add(new KeyValuePair<string, object>("@TickerID", objInf.TickerID));
            SQLHandler sqlH = new SQLHandler();
            sqlH.ExecuteNonQuery("usp_TickerSaveItem", Parameter);

        }
    protected void imgSaveTicker_Click(object sender, ImageClickEventArgs e)
    {
        try
        {
            TickerInfo objInf = new TickerInfo();
            if (Session["EdTickerID"] != null && Session["EdTickerID"].ToString() != string.Empty)
            {
                objInf.TickerID = Convert.ToInt32(Session["EdTickerID"].ToString());
                Session.Contents.Clear();
            }
            else
            {
                objInf.TickerID = 0;
            }
            objInf.TickerNews = txtTickerNews.Content;
            objInf.StartDate = Convert.ToDateTime(txtStartDate.Text);
            objInf.EndDate = Convert.ToDateTime(txtEndDate.Text);
            objInf.IsActive = chkTickerIsActive.Checked;
            objInf.PortalID = GetPortalID;
            objInf.StoreID = GetStoreID;
            objInf.AddedBy = GetUsername;
            objInf.UpdatedBy = GetUsername;
            TickerController objC = new TickerController();
            objC.SaveTickerItem(objInf);

            LoadOngdvTickerData(GetStoreID, GetPortalID);

            divVisibility(true, false, true);

        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }
        ShowMessage(SageMessageTitle.Information.ToString(), SageMessage.GetSageModuleLocalMessageByVertualPath("Modules/Ticker/ModuleLocalText", "TickerSavedSuccessFully"), "", SageMessageType.Success);
    }
    public void EditTickerByID(int TickerID)
    {
        try
        {
            TickerInfo obj = new TickerInfo();
            TickerController objC = new TickerController();
            obj = objC.getTickerObject(TickerID);
            txtEndDate.Text = Convert.ToString(obj.EndDate);
            txtStartDate.Text = Convert.ToString(obj.StartDate);
            txtTickerNews.Content = obj.TickerNews;
            chkTickerIsActive.Checked = obj.IsActive;

            divVisibility(false, true, false);
            Session["EdTickerID"] = TickerID;
        }
        catch (Exception ex)
        {
            ProcessException(ex);
        }
    }