chore: 首次簽入 Thinkyu ASP.NET 專案

- 加入 Visual Studio / ASP.NET .gitignore
- 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
This commit is contained in:
2026-09-10 09:42:37 +08:00
commit 577060bc78
2496 changed files with 501389 additions and 0 deletions
@@ -0,0 +1,42 @@
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 : FormBase
{
private int id;
private DAC_訓練溝通記錄附件 Dao訓練溝通記錄附件;
private string ;
protected void Page_Load(object sender, EventArgs e)
{
FunctionName = "溝通紀錄附件檢視";
id = DAC.GetInt32(Request["id"]);
Dao訓練溝通記錄附件 = new DAC_訓練溝通記錄附件(conn);
= Server.MapPath(Education.PublicVariable.);
var item = Dao訓練溝通記錄附件.SelectOne(id).FirstOrDefault();
if (item != null)
{
string fileName = String.Format("{0}{1}\\{2:000000}.{3}", , item., item., item.);
string fileName1 = Server.UrlEncode(item.);
Response.ClearHeaders();
Response.Clear();
Response.Expires = 0;
Response.Buffer = true;
Response.AddHeader("Accept-Language", "zh-tw");
Response.AddHeader("content-disposition", String.Format("attachment; filename=\"{0}\"", fileName1));
Response.ContentType = item.ContentType;
Response.WriteFile(fileName);
Response.End();
}
}
}
}