using Microsoft.Win32;
//加密
private string Encrypt(string Org,string key)
{
string res = "";
using Microsoft.Win32;
//加密
private string Encrypt(string Org,string key)
{
string res = "";
dtp_SDate.Format = DateTimePickerFormat.Custom;
dtp_SDate.CustomFormat = string.Format("{0}/MM/dd", dtp_SDate.Value.AddYears(-1911).Year.ToString("00"));
//年份用自定的方式轉成民國年
在程式開啟時,把用戶端的時間格式改成民國。
把FileUpload的檔案(圖檔)上傳至MS Sql中,然後從資料庫讀出後,利用ashx的泛型處理轉成二進位位元組,呈現在GridView中。
建置:
Create Table UploadImg(
id int identity(1,1),
images image null
)