摘要:
What a Windows Service isEnables you to create long-running executable applications that run in their own windows session.Can be automatically started... 阅读全文
摘要:
You should use:Data Source=|DataDirectory|\MyDb.sdf|DataDirectory| points to the App_Data folder.在程序启动时,设置AppDomain.CurrentDomain.setData(“DataDirectory”,我的目录字符串);Winform的程序那当然是在Main函数中了,废话不说了,我的代码如下stringp=AppDomain.CurrentDomain.BaseDirectory; if(p.IndexOf("\\bin\\")>0) { if(p.EndsWit 阅读全文
摘要:
.NET Compact Framework Data Provider for SQL Server MobileStandardData Source=MyData.sdf;Persist Security Info=False;SQL Server CompactHow to specify the location of the SDF fileOften times the .SDF database is not running in the current directory so it becomes necessary to programatically set the p 阅读全文
摘要:
当用foreach遍历Collection时,如果对Collection有Add或者Remove操作时,会发生以下运行时错误:"Collection was modified; enumeration operation may not execute." 如下所示: [c-sharp] view plaincopy List list = new List(); for (int i = 0; i keys = new List(); foreach (DictionaryEntry de in ht) { /* ope... 阅读全文
摘要:
I came across this scenario whereby my main View uses Ajax posts to retrieve PartialViews and delivers the markup of the PartialView into my View. I use the jQuery validation framework to implement client side unobstrusive validation.When I tried to validate my form that had been loaded into the pag 阅读全文