摘要: 写入Cookies string userId = dt.Rows[0]["user_no"].ToString(); string userName = dt.Rows[0]["user_name"].ToString(); HttpCookie cookie = new HttpCookie(" 阅读全文
posted @ 2022-10-09 00:15 暮夜秋雨 阅读(208) 评论(0) 推荐(0)
摘要: 選擇季度 `//計算每季度的起始/結束日期 protected void GetQyarter(out DateTime dt_Start_Date, out DateTime dt_End_Date) { int[] n_Months = new int[5] { 1, 4, 7, 10, 1 } 阅读全文
posted @ 2022-05-26 18:27 暮夜秋雨 阅读(223) 评论(0) 推荐(0)
摘要: // 下載明細 //下載按鈕點擊事件 protected void downfile_Click(object sender, EventArgs e) { Warning[] warnings; string[] streamids; string mimeType; string encodin 阅读全文
posted @ 2022-05-26 18:16 暮夜秋雨 阅读(127) 评论(0) 推荐(0)
摘要: 使用過,記録下來,方便下次使用. `//針對合併的DT增加一列序號 private DataTable AddSeriNumToDataTable(DataTable dt) { //需要返回的值 DataTable dtNew; if (dt.Columns.IndexOf("INDEX") >= 阅读全文
posted @ 2022-05-26 09:21 暮夜秋雨 阅读(373) 评论(0) 推荐(0)