上一页 1 ··· 89 90 91 92 93 94 95 96 97 ··· 114 下一页
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace demo5 { class Program { public delegate T del(T t); public static string say(s... 阅读全文
posted @ 2017-02-15 15:06 甜菜波波 阅读(132) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace demo3 { class Program { static void Main(string[] args) { ... 阅读全文
posted @ 2017-02-14 11:48 甜菜波波 阅读(269) 评论(0) 推荐(0)
摘要: 重启 IIS8 应用程序池的批处理 重启 IIS8 应用程序池的批处理 批处理很简单:c:\windows\system32\inetsrv\AppCmd.exe stop apppool /apppool.name:"ASP.NET v4.0"c:\windows\system32\inetsrv 阅读全文
posted @ 2017-01-18 11:52 甜菜波波 阅读(516) 评论(0) 推荐(0)
摘要: 完整的URL由这几个部分构成:scheme://host:port/path?query#fragment ,各部分的取法如下: window.location.href:获取完整url的方法:,即scheme://host:port/path?query#fragment window.locat 阅读全文
posted @ 2017-01-03 19:48 甜菜波波 阅读(2073) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace TestEvent { class MyClass { public delegate void Complet... 阅读全文
posted @ 2016-12-19 15:58 甜菜波波 阅读(139) 评论(0) 推荐(0)
摘要: 利用 Json方法返回 数据时,如果有时间格式,会变成 "\/Date(1369419656217)\/" 这个样子,问了同事找到个解决方法 我们把这个方法封装一下,写到Controller的基类里,创建一个 BaseController 的基类 保证我们每一个Controller去继承这个类 va 阅读全文
posted @ 2016-11-16 17:14 甜菜波波 阅读(220) 评论(0) 推荐(0)
摘要: DataTable.Select()方法使用和 SQL 相似的过滤语法从 DataTable 中提取你关心的记录,虽然 Select()可以很好的工作,但它还是有一些明显的限制。首先,它是基于字符串的,也就是说可能的错误不能在编译的时候发现。其次,它的过滤功能也很有限,它没有提供 LINQ 操作符能 阅读全文
posted @ 2016-11-16 14:34 甜菜波波 阅读(338) 评论(0) 推荐(0)
摘要: Aspose.Cells组件可以不依赖excel来导入导出excel文件: 导入: [csharp] view plain copy print? public static System.Data.DataTable ReadExcel(String strFileName) { Workbook 阅读全文
posted @ 2016-11-15 17:39 甜菜波波 阅读(3037) 评论(0) 推荐(0)
摘要: List lt = new List(); lt.Add("a"); lt.Add("b"); lt.Add("c"); var s= string.Join("," ,lt.Select(o =>"'"+o+"'").ToArray()); Conso... 阅读全文
posted @ 2016-11-10 18:52 甜菜波波 阅读(397) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using System.Reflection; namespace RequestParameter1.Controllers { public class Search ... 阅读全文
posted @ 2016-11-10 14:04 甜菜波波 阅读(178) 评论(0) 推荐(0)
上一页 1 ··· 89 90 91 92 93 94 95 96 97 ··· 114 下一页