Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            BOLNews NewsBOL = new BOLNews();

            rptNews.DataSource = NewsBOL.GetLatest10News();
            rptNews.DataBind();
        }
Exemplo n.º 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            BOLNews NewsBOL = new BOLNews();
            rptRandNews.DataSource = NewsBOL.GetLatest10News();
            rptRandNews.DataBind();

            //rptRandPicNews.DataSource = NewsBOL.GetRandPicNews(4); ;
            //rptRandPicNews.DataBind();

            //IranKidsDataContext dc = new IranKidsDataContext();
            //rptRandIranKids.DataSource = dc.vRandProducts.Take(6);
            //rptRandIranKids.DataBind();
        }

        catch (Exception err)
        {
            BOLErrorLogs ErrorLogsBOL = new BOLErrorLogs();
            ErrorLogsBOL.Insert(err.Message, DateTime.Now, Request.Url.AbsolutePath, "UCRandNews::Load");
        }
    }