Ejemplo n.º 1
0
        protected void rptbookdisp()
        {
            var Bookshome = (from q in db.Siddeswari_Master_Books
                             where q.SiddOrgDispPage == "Homepage"
                             select new { q.SiddOrgBookname, q.SiddOrgBookimg, q.SiddOrgsaleprice, q.SiddOrgBkstck, q.SiddOrgbkrating }).ToList();

            Rptbookhome.DataSource = Bookshome;
            Rptbookhome.DataBind();
        }
Ejemplo n.º 2
0
        protected void BooksVideodisplay()
        {
            try
            {
                var videoshome = (from q in db.Siddeswari_Master_Gallery_Videos
                                  where q.SiddOrgDispPage == "Homepage"
                                  select new { q.SiddOrgVideoTitle, q.SiddOrgVideoPath }).ToList();

                Rptvideohome.DataSource = videoshome;
                Rptvideohome.DataBind();

                var Bookshome = (from q in db.Siddeswari_Master_Books
                                 where q.SiddOrgDispPage == "Homepage"
                                 select new { q.SiddOrgBookname, q.SiddOrgBookimg, q.SiddOrgsaleprice, q.SiddOrgBkstck, q.SiddOrgbkrating }).ToList();

                Rptbookhome.DataSource = Bookshome;
                Rptbookhome.DataBind();
            }
            catch (Exception ex)
            {
                throw (ex);
            }
        }