会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
暮夜秋雨
博客园
首页
新随笔
管理
上一页
1
2
3
2022年10月9日
C# 写入Cookies和读取Cookies
摘要: 写入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)
2022年5月26日
c#獲取每季度的起始/結束日期
摘要: 選擇季度 `//計算每季度的起始/結束日期 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)
c#將ReportViewer數據導出到Excel
摘要: // 下載明細 //下載按鈕點擊事件 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)
c#給DataTable數據添加一列序號
摘要: 使用過,記録下來,方便下次使用. `//針對合併的DT增加一列序號 private DataTable AddSeriNumToDataTable(DataTable dt) { //需要返回的值 DataTable dtNew; if (dt.Columns.IndexOf("INDEX") >=
阅读全文
posted @ 2022-05-26 09:21 暮夜秋雨
阅读(373)
评论(0)
推荐(0)
上一页
1
2
3