using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebLib;
namespace Education.Forms.選課
{
public partial class ViewVideo : FormBase
{
protected void Page_Load(object sender, EventArgs e)
{
FunctionName = "數位課程觀看 >> 觀看課程影片";
int id = DAC.GetInt32(Request["id"]);
DAC_數位課程 Dao數位課程 = new DAC_數位課程(conn);
數位課程List d2 = Dao數位課程.SelectOne(id);
if (d2.Count > 0)
{
lb課程名稱.Text = d2[0].課程名稱;
lb講師姓名.Text = d2[0].講師;
// 第 1 種
ltVideo.Text = String.Format("", d2[0].課程網址);
// ltVideo.Text = String.Format("", d2[0].課程網址);
// ltVideo.Text = String.Format("", d2[0].課程網址);
// ltVideo.Text = String.Format("", d2[0].課程網址);
// 第 4 種
///ltVideo.Text = String.Format("", d2[0].課程網址);
new DAC_數位課程觀看紀錄(conn).Insert(id, UserId, UserId);
}
}
}
}