コード例 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!this.IsPostBack)
     {
         WebcastDA objWebcastDA = new WebcastDA();
         List<WebinarBO> objWebinarBO = objWebcastDA.GetMyWebcastDA(0);
         rpImg.DataSource = objWebinarBO;
         rpImg.DataBind();
     }
 }
コード例 #2
0
        protected void ibtnImg1_Click(object sender, ImageClickEventArgs e)
        {
            WebcastDA objWebcastDA = new WebcastDA();

            List<WebinarBO> objWebinarBO = objWebcastDA.GetWebcastDetailDA(2);
            if (objWebinarBO.Count > 0)
            {
                lblTitle.Text = objWebinarBO[0].Title;
                lblPresenter.Text = objWebinarBO[0].Presenter;
                lblDate.Text = objWebinarBO[0].SessionDateAndTime;
                ltrConfDetail.Text = objWebinarBO[0].Summary;
            }
        }
コード例 #3
0
        protected void rpImg_ItemCommand(object source, RepeaterCommandEventArgs e)
        {
            WebcastDA objWebcastDA = new WebcastDA();

            List<WebinarBO> objWebinarBO = objWebcastDA.GetWebcastDetailDA(Convert.ToInt32(e.CommandArgument));
            if (objWebinarBO.Count > 0)
            {
                lblTitle.Text = objWebinarBO[0].Title;
                lblPresenter.Text = objWebinarBO[0].Presenter;
                lblDate.Text = objWebinarBO[0].SessionDateAndTime;
                ltrConfDetail.Text = objWebinarBO[0].Summary;
                //ltrVideo.Text = "<video width=\"320\" height=\"240\" controls=\"controls\" src=\"../Data/" + objWebinarBO[0].recordedFilename + "\"></video>";
                ltrVideo.Text = "<video controls=\"controls\" src=\"..//Data//" + objWebinarBO[0].recordedFilename + "\"></video>";
            }
        }