随笔分类 - .Net(c#,asp.net)
摘要:http://studiostyl.es/- visual studio 的样式。分享!
阅读全文
摘要:在MVC4下, 很多人都在使用Ninject来实现DI。在这里(http://q.cnblogs.com/q/37471/) , 老大提到一个:[assembly: PreApplicationStartMethod(typeof(BootStrapper.Initializer), "Initialize")]但是我至今都没搞定那个BootStrapper是怎么来的。引用了哪些DDL?研究了2个小时,搞定如下:1. 首先需要添加如下的引用: (添加到WebUI项目下,DAL项目无需添加)1) BootStrapper.Ninject2) Ninject.使用nuget添加
阅读全文
摘要:参考资料:http://www.codeproject.com/Articles/719/Start-Your-Windows-Programs-From-An-NT-Servicehttp://msdn.microsoft.com/en-us/library/zt39148a(v=vs.80).aspx总结:XYNTService 本身之负责你的程序进程的运行情况,比如该进程是死,是活,等等。但是他并不定时调用你的程序。所以,我们需要在自己的程序里面增加定时器,每隔一段时间,然后执行任务即可。在C# win form程序下,可以直接只用Timer来做定时器,简单,爽啊。安装和卸载:To in
阅读全文
摘要:好久没有写博客了这次的问题是,.net下的dll如何在COM中使用。本机(win7)开发的时候, COM下,可以直接使用,一点问题也没有,但是导出dll到其他机器(windows xp, win 2003, win 7等)却一直存在如题所示的问题。原因是在本机开发的时候,Visual Studio 会自动往注册表写一个:HKEY_CLASSES_ROOT\CLSID\{71F5F31E-D86B-4FF1-89CA-BFCC3B8117BA}\InprocServer32\CodeBase=<path to your assembly>但是其他机器却没有这个,咋办呢?解决办法如下:
阅读全文
摘要:private void gvList_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e) { if (e.Button == System.Windows.Forms.MouseButtons.Right) { DataGridView.HitTestInfo hitTestInfo = gvList.HitTest(e.X, e.Y); Point pt = gvList.PointToClient...
阅读全文
摘要:其实最开始一直没注意,用的是iis7的classic模式,结果导致很多问题。完全解释参见:http://go.microsoft.com/?LinkId=9394801
阅读全文
摘要:参考:http://blog.whitesites.com/Debugging-Faulting-Application-w3wp-exe-Crashes__634424707278896484_blog.htm
阅读全文
摘要:site:http://www.nginx.com/prod.htmlwiki:http://wiki.nginx.org/NginxChsHttpProxyModuleInstall:http://wiki.nginx.org/InstallArticals:http://www.cyberciti.biz/faq/rhel-linux-install-nginx-as-reverse-proxy-load-balancer/http://www.ubuntugeek.com/using-nginx-as-a-reverse-proxy-to-get-the-most-out-of-your
阅读全文
摘要:Razor: http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspxSpark: http://sparkviewengine.com/NHaml: http://code.google.com/p/nhaml/
阅读全文
摘要:ALL_HTTP: HTTP_CONNECTION:Keep-Alive HTTP_ACCEPT:text/html, application/xhtml+xml, */* HTTP_ACCEPT_ENCODING:gzip, deflate HTTP_ACCEPT_LANGUAGE:zh-CN HTTP_HOST:192.168.0.199 HTTP_USER_AGENT:Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0) ALL_RAW: Connection: Keep-Alive Accept:
阅读全文
摘要:这么好一个工具,被我删除了唉,由于过了试用期,也一直没来得及试用,结果出问题,频繁引起我的iis出问题。接着就删除,结果还不让删除,发现必须要先停止掉iisadmin 和www 2个services后,才好删除。偶也,搞定。哪位仁兄手里有可用的4.1.4版的,请推荐。谢谢。
阅读全文
摘要:VB.net:Protected Overrides Function LoadPageStateFromPersistenceMedium() As Object Dim key As String = Request.RawUrl + "__viewstate" If Session(key) IsNot Nothing Then Dim stream As MemoryStream = DirectCast(Session(key), MemoryStream) stream.Seek...
阅读全文
摘要:Source From ronaldlemmen.blogspot.com0x80048472 One or more imports are not in completed state. Imported records can only be deleted from completed jobs. Wait until job completes, and then try again.0x80048471 The workflow does not contain UIData.0x80048470 The entity relationship role of the refere
阅读全文
摘要:StyleCop analyzes C# source code to enforce a set of style and consistency rules. It can be run from inside of Visual Studio or integrated into an MSBuild project. StyleCop has also been integrated into many third-party development toolshttp://stylecop.codeplex.com/Code Analysis Check-In Policieshtt
阅读全文
摘要:比较全面的WIKI:http://www.crmwiki.net/crm4-development-resources.ashx1.Form Scripts Manager:http://mscrmtools.blogspot.com/2009/03/after-few-days-weeks-of-silence-i-am.htmlMS CRM Form Scripting(2011-02-28 17:07)crmForm.SubmitCrmForm function(2011-03-03 13:21)2.CrmService Tookit: (绝对好东西)http://danielcai.b
阅读全文
摘要:参考:http://support.microsoft.com/kb/307020/zh-cn格式化信息:http://msdn.microsoft.com/zh-cn/library/26etazsy.aspx#FormatStrings日期格式化信息:http://msdn.microsoft.com/zh-cn/library/system.globalization.datetimefor...
阅读全文
摘要:需要把一个网页里的日历(事件)加到outlook里面。搜索之后,发现主要是生成一个ics文件,当用outlook打开这个文件后,就自动添加了。使用类库iCalendar.cs.完成例子:http://ryanfarley.com/blog/archive/2008/08/08/adding-calendar-items-from-a-webpage-via-icalendar.aspx
阅读全文
摘要:Official site:http://www.imagemagick.org/script/index.phpCodePlex:http://imagemagick.codeplex.com/Books:Books About ImageMagickAn open source project backed by years of continual development, ImageMag...
阅读全文
摘要:http://www.devasp.net/net/articles/display/438.html
阅读全文
摘要:Helloi have tried many methods:1. normal way:this way doesn't work. actually ,the file was downloaded, but the current page wasn't displayed.2.using Thread.i got an error in method "DownloadFile", may...
阅读全文