摘要:
1 $.fn.extend({ 2 // $(that).children() 只读取 id 以 "json_" 开始的元素, 3 // 且 id 的命名规则一定是 json_[id]_[dataType] 4 // [id] 是不能包含 _ 的任何有意义的名称 5 // [dataType] 是该元素的数据类型,根据 c# 的基本数据类型命名,用途待续... 6 toSubmitJSON: function (url) { 7 8 var that = this; 9 var elementIdPattern = /... 阅读全文
摘要:
public class Person{ public int Id { get; set; } public string Name { get; set; } [Timestamp] public Byte[] Version { get; set; ... 阅读全文
摘要:
扩展配置问题:兼容性问题:[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]或基地址问题:, 通常为空system.serviceModel/servic... 阅读全文
摘要:
public static void GridViewToExcel(GridView grd, HttpResponse response, string charset){ RemoveControls(grd); response.Clear(); response.Buffer = true; response.Charset = charset; response.AppendHeader("Content-Disposition", "attachment;filename=NewFileName.xls"); //文件名可以自定义 resp 阅读全文
摘要:
select * from [Sheet1$] where ...连接字符串://Excel 2007string conn= "Provider=Microsoft.ACE.OLEDB.12.0;data source=" + fullpath+ ";Extended Properties='Excel 12.0;HDR=Yes;IMEX=1'";(数据连接组件安装: http://download.microsoft.com/download/7/0/3/703ffbcb-dc0c-4e19-b0da-1463960fdcdb/Acc 阅读全文
摘要:
远程调用失败打SQLSERVERR2SP2补丁或删除安装程序MicrosoftSQLServer2012ExpressLocalDB 阅读全文
摘要:
1. 自定义的declare @watch datetime;set @watch=getdate();select * from table;select datediff(ms,watch,getdate()) as elapsedTime;2. 系统提供的set statistics time onselect * from tableset statistics time off结果输出在消息窗口里,如:SQL Server Execution Times: CPU time = 0 ms, elapsed time = 17 ms. 阅读全文
摘要:
<ResourceDictiontory Source="css/stlye.xaml"></ResourceDictiontory>等同于<link rel="stylesheet" href="css/style.css" />代码加载xaml styleResourceDictionary resources = null; using (FileStream fs = new FileStream(文件路径+@"style.xaml", FileMode.Open, Fi 阅读全文
摘要:
ManualResetEvent _handle = new ManualResetEvent(true);//设置为true时,则为开,flase反之; void _timer_Elapsed(object sender, ElapsedEventArgs e) { try{ // WaitOne 阅读全文
摘要:
由window.open 打开的子页面,可以通过JQuery 修改父页面的值:var table = $("#tbRepeater", opener.document); //获取父页面的tabletable.find("td #name").val("被子页面修改的值"); 阅读全文