예제 #1
0
        private void GetEventDetails()
        {
            try
            {
                //    EventListingViewModel _eventListingViewModel = new EventListingViewModel();
                //    List<EventListingModel> _eventListingModel = new List<EventListingModel>();

                //    rcontent.DataSource = _eventListingModel.Take(4);
                //    rcontent.DataBind();

                //    rQuickBook.DataSource = _eventListingModel;
                //    rQuickBook.DataBind();

                //    rFeatured.DataSource = _eventListingModel.Take(4);
                //    rFeatured.DataBind();

                EventListingViewModel _eventListingViewModel = new EventListingViewModel();
                List<EventListingModel> _eventListingModel = new List<EventListingModel>();

                _eventListingModel = _eventListingViewModel.GetEventListing();

                rcontent.DataSource = _eventListingModel.Take(4);
                rcontent.DataBind();

                rQuickBook.DataSource = _eventListingModel;
                rQuickBook.DataBind();

                rFeatured.DataSource = _eventListingModel.Take(4);
                rFeatured.DataBind();
            }
            catch (Exception ex)
            {
                ErrHandler.WriteError(ex.Message);
            }
        }
예제 #2
0
        private void GetEventDetails()
        {
            try
            {
                EventListingViewModel _eventListingViewModel = new EventListingViewModel();
                List<EventListingModel> _eventListingModel = new List<EventListingModel>();

                _eventListingModel = _eventListingViewModel.GetEventListing();

                //rcontent.DataSource = _eventListingModel; //-kk .Take(4);
                //rcontent.DataBind();

                rQuickBook.DataSource = _eventListingModel.Take(10);  //+kk added 10;
                rQuickBook.DataBind();

                //rFeatured.DataSource = _eventListingModel.Take(4);
                //rFeatured.DataBind();

                var featureshow = _eventListingModel.Where(m => m.FeatureShow == "True");

                rFeatured.DataSource = featureshow.Take(5); //_eventListingModel.Take(4);
                rFeatured.DataBind();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
예제 #3
0
        private void GetEventDetails()
        {
            try
            {
                EventListingViewModel _eventListingViewModel = new EventListingViewModel();
                List<EventListingModel> _eventListingModel = new List<EventListingModel>();

                _eventListingModel = _eventListingViewModel.GetEventListing();

                //rswitchBigPic.DataSource = _eventListingModel.Take(5); //+kk added take(5);
                //rswitchBigPic.DataBind();

                var eventList = _eventListingModel.Where(m => m.SpecialImage == "True");
                rswitchBigPic.DataSource = eventList.Take(5); //_eventListingModel.Where(m => m.SpecialImage == "True"); //+kk added take(5);
                rswitchBigPic.DataBind();

                //rnav.DataSource = _eventListingModel.Take(5);  //+kk added 5
                rnav.DataSource = eventList.Take(5);
                //rnav.DataSource = _eventListingModel.Where(m => m.SpecialImage == "True");  //+kk added 5
                rnav.DataBind();

                var amascroll = _eventListingModel.Where(m => m.SmallImagePath != "");

                ramazon_scroller_mask.DataSource = amascroll;
                ramazon_scroller_mask.DataBind();

                //rcontent.DataSource = _eventListingModel.Take(5); //+kk changed to  5
                rcontent.DataSource = amascroll.Take(7); //+kk changed to  5
                rcontent.DataBind();

                rQuickBook.DataSource = _eventListingModel.Take(10);  //+kk added 10
                rQuickBook.DataBind();

                var featureshow = _eventListingModel.Where(m => m.FeatureShow == "True");

                rFeatured.DataSource = featureshow.Take(5); //_eventListingModel.Take(4);
                rFeatured.DataBind();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
예제 #4
0
        private void GetEventDetails()
        {
            try
            {
                EventListingViewModel _eventListingViewModel = new EventListingViewModel();
                string simg = _eventListingViewModel.BannerImage().Replace("~", "");

                bannerImg.Src = simg;
            }
            catch (Exception ex)
            {
                ErrHandler.WriteError(ex.Message);
                // Response.Redirect("Default.aspx"); //-kk redirect
                Response.Redirect("http://showsline.com/Default.aspx?action=logout", false);
                Context.ApplicationInstance.CompleteRequest();

            }
        }
예제 #5
0
        protected void GetEventListing()
        {
            try
            {
                EventListingViewModel _eventListingViewModel = new EventListingViewModel();
                List<EventListingModel> _eventListingModel = new List<EventListingModel>();

                _eventListingModel = _eventListingViewModel.GetEventListing();
                int cnt = 1;

                foreach (var item in _eventListingModel)
                {
                    //phQuickBook.Controls.Add(new LiteralControl("<li style='color:white;'>"));
                    //LinkButton lb = new LinkButton();
                    //lb.Text = item.EventTitle;
                    //lb.ForeColor = Color.FromArgb(119, 135, 142);
                    //lb.PostBackUrl = "events-List.aspx?ID=" + item.EventID + "&EN=" + item.EventTitle;
                    //phQuickBook.Controls.Add(lb);
                    //phQuickBook.Controls.Add(new LiteralControl("</li>"));

                    //phSlideShow.Controls.Add(new LiteralControl("<div>"));
                    //phSlideShow.Controls.Add(new LiteralControl("<a title='' href='#'>"));
                    //phSlideShow.Controls.Add(new LiteralControl("<img class='pic' src='" + item.ImagePath + "' style='width:100%' />"));
                    //phSlideShow.Controls.Add(new LiteralControl("</a>"));
                    //phSlideShow.Controls.Add(new LiteralControl("<p>"));
                    //if (item.EventDesc.Length < 100)
                    //{
                    //    phSlideShow.Controls.Add(new LiteralControl("<strong>" + item.EventDesc + "</strong>"));
                    //}
                    //else
                    //{
                    //    phSlideShow.Controls.Add(new LiteralControl("<strong>" + item.EventDesc.Substring(0, 150) + "..." + "</strong>"));
                    //}
                    //phSlideShow.Controls.Add(new LiteralControl("<br/>"));
                    //phSlideShow.Controls.Add(new LiteralControl("</p>"));
                    //phSlideShow.Controls.Add(new LiteralControl("</div>"));

                    //if (cnt <= 4)
                    //{
                    //    phTitle.Controls.Add(new LiteralControl("<li>"));
                    //    phTitle.Controls.Add(new LiteralControl("<a href='#'>" + item.EventTitle + "<br/>"));
                    //    phTitle.Controls.Add(new LiteralControl(item.EventDate.ToString("dd/MMM/yyyy") + "<br/>"));
                    //    phTitle.Controls.Add(new LiteralControl("</a></li>"));
                    //}

                    //phSubMenuEvent.Controls.Add(new LiteralControl("<li>"));
                    //phSubMenuEvent.Controls.Add(new LiteralControl("<a href='#'>"));
                    //phSubMenuEvent.Controls.Add(new LiteralControl("<img src='" + item.ImagePath + "' width='124' height='180' alt='tag'/>"));
                    //phSubMenuEvent.Controls.Add(new LiteralControl("</a></li>"));

                    //if (cnt <= 4)
                    //{
                    //    phFeaturedShow.Controls.Add(new LiteralControl("<li><a title='" + item.EventTitle + "' href='events-List.aspx?ID=" + item.EventID + "&EN=" + item.EventTitle + "'>" + item.EventTitle + "</a>"));
                    //    phFeaturedShow.Controls.Add(new LiteralControl("<ul>"));

                    //    if (item.EventDesc.Length > 100)
                    //    {
                    //        phFeaturedShow.Controls.Add(new LiteralControl("<li>" + item.EventDesc.Substring(0, 100) + "..."));
                    //    }
                    //    else
                    //    {
                    //        phFeaturedShow.Controls.Add(new LiteralControl("<li>" + item.EventDesc));
                    //    }
                    //    phFeaturedShow.Controls.Add(new LiteralControl("</ul></li>"));
                    //}

                    //if (cnt < 4)
                    //{
                    //    //phContent.Controls.Add(new LiteralControl("<h3>" + item.EventTitle + "  <span style='color:red;'>" + item.EventDate.ToString("dd/MMM/yyyy") + "</span></h3>"));
                    //    phContent.Controls.Add(new LiteralControl("<h3><a title='" + item.EventTitle + "' href='events-List.aspx?ID=" + item.EventID + "&EN=" + item.EventTitle + "'>" + item.EventTitle + " </a><span style='color:red;'>" + item.EventDate.ToString("dd/MMM/yyyy") + "</span></h3>"));

                    //    phContent.Controls.Add(new LiteralControl("<p><a title='" + item.EventTitle + "' href='events-List.aspx?ID=" + item.EventID + "&EN=" + item.EventTitle + "'><img src='" + item.ImagePath + "'  width='75' height='75' alt='tag'/></a>" + item.EventDesc));
                    //    phContent.Controls.Add(new LiteralControl("</p>"));
                    //    //phContent.Controls.Add(new LiteralControl("<p>" + item.EventDate.ToString("dd/MMM/yyyy") +"</p>"));
                    //}

                    cnt++;
                    //<h3>Lorem ipsum dolor sit amet</h3>
                    //<p><img src="images/bob-dylan-tickets-75x75.jpg" />"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
                    //<p>"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
                }

                //     <div> <a title="" href="#">
                //    <img class="pic" src="images/006.jpg" />
                //</a>
                //        <p>
                //<strong>Description Title 1</strong>
                //<br/>
                //          Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor</p>
                //      </div>

                //phQuickBook
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }