2013年8月13日

摘要: /// /// 导出Excel 方法1 /// /// public ActionResult ExportExcel() { List listdata=new List(); //listdata = GetListData(); DataSet ds = GetDataSetFormList(listdata); CreateExcelFromDatatable(ds.Tables[0], "outPutEx... 阅读全文
posted @ 2013-08-13 17:16 wboweb 阅读(1249) 评论(0) 推荐(0) 编辑

2013年6月21日

摘要: <script type="text/javascript"> var strdate = new Date(); var begindate = strdate.getTime(); var enddate = begindate + (-7*24*60*60*1000); strdate.setTime(enddate); var dtStart=new Date(strdate); </script> 阅读全文
posted @ 2013-06-21 16:32 wboweb 阅读(613) 评论(0) 推荐(0) 编辑

2013年6月6日

摘要: <meta http-equiv="X-UA-Compatible" content="IE=edge"></meta> 阅读全文
posted @ 2013-06-06 16:19 wboweb 阅读(233) 评论(0) 推荐(0) 编辑

2013年6月4日

摘要: //需要注意的是在Json字符串中不能出现单引号或者是字符串但不带双引号。<script type="text/javascript"> var jsonstr = '[{"Title":"星期二多云","Content":"是佛时间佛教;"},{"Title":" 第一章","Content":"<strong>多云,微风</strong>"},{"Title& 阅读全文
posted @ 2013-06-04 14:50 wboweb 阅读(33254) 评论(0) 推荐(0) 编辑
摘要: #region 列表序列化成list protected List<T> ToList<T>(string[] listStr) { var list = new List<T>(); foreach (var add in listStr) { if (!string.IsNullOrEmpty(add)) { // T t = SerializeKit.JsonDeserialize<... 阅读全文
posted @ 2013-06-04 14:37 wboweb 阅读(284) 评论(0) 推荐(0) 编辑
摘要: json字符串格式如:[{"Title":"第零章","Content":"这是内容信息"},{"Title":" 第一章","Content":"<strong>多云,微风</strong>"},{"Title":" 第二章","Content":"降落伞"},{"Title":" 第三章", 阅读全文
posted @ 2013-06-04 14:34 wboweb 阅读(217) 评论(0) 推荐(0) 编辑

2013年5月30日

摘要: @{ DateTime nowTime = System.DateTime.Now; } $(function () { var currentDate = '@nowTime.ToString("yyyyMMdd HH:mm:ss")'; var currentYear = '@nowTime.Year'; var currentMonth = '@nowTime.Month'; var currentDay = '@nowTime.Day'; var currentHour = '@nowTime. 阅读全文
posted @ 2013-05-30 18:03 wboweb 阅读(701) 评论(0) 推荐(0) 编辑

2013年5月13日

摘要: /// /// 文件下载 /// /// /// /// public FileStreamResult DownLoadFile(string filePath,string fileName) { Stream stream = null; try { if (System.IO.File.Exists(filePath)) { ... 阅读全文
posted @ 2013-05-13 10:15 wboweb 阅读(234) 评论(0) 推荐(0) 编辑

2013年5月10日

摘要: /// <summary> /// 压缩图片 /// </summary> /// <returns></returns> public string ResizePic() { #region 压缩图片开始 bool IsImgFile = true; //判断是否为图片文件 string filePathName = "123"; //文件存储的路径(文件夹名称) string fileName = "a.jpg... 阅读全文
posted @ 2013-05-10 18:21 wboweb 阅读(2263) 评论(0) 推荐(0) 编辑

2013年4月8日

摘要: /// <summary> /// 根据月份和日期计算星座 /// </summary> /// <param name="month"></param> /// <param name="day"></param> /// <returns></returns> public string GetXingZuoByMonthAndDay(int month, int day) { string s = "魔羯水瓶双鱼白羊金牛双子巨蟹狮子处女天秤天蝎 阅读全文
posted @ 2013-04-08 17:28 wboweb 阅读(240) 评论(0) 推荐(0) 编辑

导航