chore: 首次簽入 Thinkyu ASP.NET 專案
- 加入 Visual Studio / ASP.NET .gitignore - 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
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("<iframe allowfullscreen=\"\" frameborder=\"0\" width=\"800\" height=\"600\" src=\"{0}?version=3&hd=1&rel=0&autoplay=1\" ></iframe>", d2[0].課程網址);
|
||||
|
||||
// ltVideo.Text = String.Format("<embed src=\"http://www.youtube.com/v/{0}?version=3&hl=zh_TW&hd=1&rel=0&autoplay=1\" type=\"application/x-shockwave-flash\" width=\"1000\" height=\"600\" allowscriptaccess=\"false\" allowfullscreen=\"true\"></embed>", d2[0].課程網址);
|
||||
// ltVideo.Text = String.Format("<iframe allowfullscreen allowscriptaccess frameborder=\"0\" width=\"800\" height=\"600\" src=\"http://www.youtube.com/v/{0}?hd=1&rel=1&autoplay=1\"></iframe>", d2[0].課程網址);
|
||||
|
||||
// ltVideo.Text = String.Format("<object width=\"800\" height=\"600\"><param name=\"movie\" value=\"http://www.youtube.com/v/{0}?hd=1&rel=1&autoplay=1\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"false\"></param><embed src=\"http://www.youtube.com/v/{0}?hd=1&rel=1&autoplay=1\" type=\"application/x-shockwave-flash\" width=\"800\" height=\"600\" allowscriptaccess=\"false\" allowfullscreen=\"true\"></embed></object>", d2[0].課程網址);
|
||||
|
||||
// 第 4 種
|
||||
///ltVideo.Text = String.Format("<iframe src=\"{0}\"></iframe>", d2[0].課程網址);
|
||||
|
||||
new DAC_數位課程觀看紀錄(conn).Insert(id, UserId, UserId);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user