摘要:
// strLog 参数:写到txt文本的内容 public static void WriteLog(string strLog) { string sFilePath = "c:\\" + DateTime.Now.ToString("yyyyMM"); string sFileName = " 阅读全文
posted @ 2020-11-24 15:48
蕙草
阅读(957)
评论(0)
推荐(0)
摘要:
// strLog 参数:写到txt文本的内容 public static void WriteLog(string strLog) { string sFilePath = "c:\\" + DateTime.Now.ToString("yyyyMM"); string sFileName = " 阅读全文
posted @ 2020-11-24 15:48
蕙草
阅读(957)
评论(0)
推荐(0)
摘要:
C#设置窗体最大化示例:也可将方法内的内容放到主窗体首次加载load方法中。/// /// 设置窗体最大化(不遮挡任务栏)但此方法在宽屏中不能显示全屏/// /// public virtual void SetFormMax(Form frm) { frm.Top = 0; frm.Le... 阅读全文
posted @ 2015-09-16 09:44
蕙草
阅读(3028)
评论(1)
推荐(1)
摘要:
具体的:Base64编码解码还需要学习 /// /// base64 解码Excel下载 /// /// /// public void BidExcelDown(string excelContent, string s... 阅读全文
posted @ 2014-09-29 14:53
蕙草
阅读(827)
评论(0)
推荐(0)
摘要:
拿来的,望原创见谅!public void EXCELDown(DataTable dt, string strFileName) { Response.ContentEncoding = System.Text.Encoding.GetEncoding("GB2... 阅读全文
posted @ 2014-09-29 14:30
蕙草
阅读(242)
评论(0)
推荐(0)
摘要:
最近在做Excel导出,看到了这个方法,虽不是自己写的,但值得收藏,但是忘记从那摘抄的,没写原文作者看到望见谅! 1 #region 导出Excel 2 /// 3 /// list 转换Datatable 4 /// 5 /// 6 /// 7 public DataTable DataO... 阅读全文
posted @ 2014-09-29 14:26
蕙草
阅读(902)
评论(0)
推荐(0)
摘要:
declare @times datetimeset @times=getdate()--要查询的sql语句select [注册数花费时间(毫秒)]=datediff(ms,@times,getdate()) 阅读全文
posted @ 2014-07-08 11:38
蕙草
阅读(1505)
评论(0)
推荐(0)
摘要:
private void Page_Load(object sender, System.EventArgs e){这里可以判断,什么时候要做跳转Response.Status = “301 Moved Permanently”;Response.AddHeader(”Location”,”http://www.ahwebs.com/articles/301/“);} 阅读全文
posted @ 2013-12-17 11:39
蕙草
阅读(154)
评论(0)
推荐(0)
摘要:
主要做的是,文章中的关键字标签加上链接,网上也有很多解决办法,自己整理以便后续在用。效果如图:下面是代码: 1 /// 2 /// 内联 3 /// 4 /// 5 /// 6 public string ReplaceTextTag(string content) 7 { 8 A a = new A(); 9 string result = "";10 if (!string.IsNullOrEmpty(conte... 阅读全文
posted @ 2013-12-17 11:37
蕙草
阅读(603)
评论(3)
推荐(0)
摘要:
有两种方法:Html代码如下: 1 2 3 4 5 无标题文档 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 View Code JS代码如下:View Code 阅读全文
posted @ 2013-09-05 11:27
蕙草
阅读(435)
评论(0)
推荐(0)
摘要:
此功能主要解决重复数据只显示一次重复出现的值:1、例如下图:OrderNo "D9" 是订单编号PassName是乘客信息。一个订单有两个乘客,此时吧我们不能让他我们的列表显示两条这样的数据。2、此时数据显示在系统管理页面应该是一条的数据此时就用DISTINCT 和ORDER BY结合一下效率会比较高点。View Code 1 SELECT distinct ROW_NUMBER()Over(ORDER BY OrderNo) as rowId,OrderNo,OrderTypeId,OrderTypeName, 字段…… FROM 表名 WHERE 1=1 3、注意此时s 阅读全文
posted @ 2012-09-27 16:40
蕙草
阅读(2274)
评论(0)
推荐(0)
|