All the sample codes I googled do not
work for my environment. The key to make it work is to use
“System.DirectoryServices.Protocols” namespace, not
“System.DirectoryServices”, which is designed for Active Directory
only. .
Tag Archives: C#
Consuming SRS with Web Service
This documentation was written for a project I did to explore how SRS can help phamaseutical enterprise manage their data and internal developed application. For use or reference, please cite this site as original author.
ZT: 不要一辈子靠技术生存
加强更新!
前段时间主要精力在学习dotNet和C#, 更新不足,网站当然是内容制胜,所以我会加强更新,特别是中文日志部分。
C#: How to speed up operation on ArrayList
The biggest slowdown in the collections class is the slowdown from resizing it. Pass an estimated size in the constructor, and you speed
it up a TON.
Windows control “ListBox” datasource refresh
When Windows.Forms.ListBox which is bound to a C# array through its DataSource property, the content of the array displays properly in the listbox. But the content of array is modified, what’s the best why to refresh the Listbox?
不要瞎走捷径
最近享用C#写个代理服务器的程序, 考虑半天决定用一个网上有人提供的异步socket库来做,觉得这样会比较简单,结果上个星期完全泡在了里面也没有结果.
Synchronous and Asynchronous socket communication
The key difference between synchronous and asynchronous communication can be explained with an example.
Visual studio 2005 “No template found”
When I tried to start a visual studio 2005 project in C#, an error came out like “no template found”, while C++ project can see all the templates.
Compile C# program from command line
You can compile this program by simply running the C#
command-line compiler (csc.exe) against the source
file, like csc test.cs . If you want to compile code from the command line using the csc command, you should be aware that the .NET command-line
tools, including csc, are only available if certain
environment variables have been set up.