2016年4月21日

c# 调用sqlserver sp_send_dbmail 存储过程 发送邮件

摘要: <appSettings> <add key="MailProfile" value="AAA"/> </appSettings> private void btnSendMail() { try { string mailProfile = ConfigurationManager.AppSett 阅读全文

posted @ 2016-04-21 17:14 昂扬绽放 阅读(516) 评论(0) 推荐(0) 编辑

将文件都入到DataTable中,及datatable 转换为某对象

摘要: private DataTable GetDataTableByFile(string path) { DataTable dt = new DataTable(); FileStream fs = new FileStream(path, System.IO.FileMode.Open, Syst 阅读全文

posted @ 2016-04-21 16:58 昂扬绽放 阅读(136) 评论(0) 推荐(0) 编辑

winform checkboxlist 绑定数据,修改刷新

摘要: App.config中写的代码 public class Info { public string Id { get; set; } public string Name { get; set; } } public partial class Form1 : Form { public List GetSourceDa... 阅读全文

posted @ 2016-04-21 16:53 昂扬绽放 阅读(1376) 评论(0) 推荐(0) 编辑

c# 写日志Demo

摘要: public class LogHelper { private static object objLock = new object(); public void SaveLogToFile(string message,string functionName) { lock (objLock) 阅读全文

posted @ 2016-04-21 15:57 昂扬绽放 阅读(203) 评论(0) 推荐(0) 编辑

导航