2016年8月29日

html 读取xml

摘要: 1, xml 文件 <?xml version="1.0" encoding="utf-8"?><root> <person> <name type="star">王力宏</name> <photo>./images/wlh.jpg</photo> <album>&lt;&lt;改变自已&gt;&g 阅读全文

posted @ 2016-08-29 23:25 昂扬绽放 阅读(436) 评论(0) 推荐(0) 编辑

2016年7月29日

正则表达式不匹配括号

摘要: 正则表达式中涉及到分组的时候,匹配括号不匹配括号 (?:) 表示不匹配次括号 (?:($1)|($2)|($3)) 表示最外边的括号不匹配,里边的三个小括号匹配,但是下标不变$0 是空 $1 =$1 $2=$2 $3=$3 阅读全文

posted @ 2016-07-29 21:59 昂扬绽放 阅读(2217) 评论(0) 推荐(0) 编辑

2016年7月26日

mvc 跨action 传值两种方式,1.session, 2.TempData

摘要: mvc 跨action 传值两种方式,1.session, 2.TempData 阅读全文

posted @ 2016-07-26 19:58 昂扬绽放 阅读(465) 评论(0) 推荐(0) 编辑

2016年7月17日

js 原型

摘要: 阅读全文

posted @ 2016-07-17 23:21 昂扬绽放 阅读(97) 评论(0) 推荐(0) 编辑

2016年6月24日

c#mvc User.Identity.Name 为空

摘要: 使用场景:MVC项目中直接显示用户名 一般情况下view中userName:@User.Identity.Name 一般显示为空,如果没有登陆界面,要显示默认用户名步骤如下: 1.在最外层web.config <appSettings> 中添加节点 <add key="enableSimpleMem 阅读全文

posted @ 2016-06-24 16:45 昂扬绽放 阅读(904) 评论(1) 推荐(0) 编辑

2016年5月22日

图片文字垂直居中

摘要: <div style="height:200px;width:200px;border:1px solid red;line-height:200px;text-align:center;"> <img style="height:100px; vertical-align:middle;" src 阅读全文

posted @ 2016-05-22 18:36 昂扬绽放 阅读(199) 评论(0) 推荐(0) 编辑

2016年5月4日

MVC中Model 转ViewModel ConvertAll 方法

摘要: 应用场景:MVC中 从业务逻辑层得到product 列表后,用viewModel 展示到view中 public class TestController : Controller { public ActionResult Index() { return View(); } public Act 阅读全文

posted @ 2016-05-04 18:03 昂扬绽放 阅读(507) 评论(0) 推荐(0) 编辑

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) 编辑

导航