07 2012 档案

摘要:stringDepartment="Billing";DirectorySearcherLdapSearcher=newDirectorySearcher();LdapSearcher.PropertiesToLoad.Add("displayName");LdapSearcher.PropertiesToLoad.Add("cn");LdapSearcher.PropertiesToLoad.Add("department");LdapSearcher.PropertiesToLoad.Add("tit 阅读全文
posted @ 2012-07-28 19:51 hishanghai 阅读(251) 评论(0) 推荐(0)
摘要:Here's a quick tip to get started working with Excel interop in C#.// Create a new instance of the Excel applicationexcelFile = new Excel.ApplicationClass(); Excel.Workbook workbook = excelFile.Workbooks.Add(Type.Missing); // Now create a brand new workbookexcelFile.Visible = true; // ensure tha 阅读全文
posted @ 2012-07-28 17:13 hishanghai 阅读(726) 评论(0) 推荐(0)
摘要:以下方式若想改寫成抓取全部,想請教一些疑問撈出ActiveDirectory聯絡人按下button1撈出單個使用者:privatevoidbutton1_Click(objectsender,EventArgse){stringuid="GGYY";//Domain帳號stringpwd="12345";//密碼stringdomain=GetDomainName(domain_txt.Text);//取得DomainstringQueryString="LDAP://"+domain;DirectoryEntryldapConnec 阅读全文
posted @ 2012-07-27 15:46 hishanghai 阅读(413) 评论(0) 推荐(0)
摘要:BooleanIsBig5(stringstrOne){BooleanbIsBig5=false;byte[]ByteArrayBig5=System.Text.Encoding.GetEncoding("big5").GetBytes(strOne);if(ByteArrayBig5.Length==2){//checkA440~C67E常用字,C940~F9D5次常用字//42048~50814,51520~63957intiCode=ByteArrayBig5[0]*256+ByteArrayBig5[1];if((iCode>=42048&&i 阅读全文
posted @ 2012-07-26 11:07 hishanghai 阅读(659) 评论(0) 推荐(0)
摘要:http://www.zune.net/en-US/products/zuneoriginals/default.htm 阅读全文
posted @ 2012-07-10 15:16 hishanghai 阅读(136) 评论(0) 推荐(0)
摘要:<scriptlanguage="javascript"type="text/javascript">functionbtnClick(){varxmlhttp=newActiveXObject("Microsoft.XMLHTTP");//创建XMLHTTP对象if(!xmlhttp){alert("创建xml异常");returnfalse;}xmlhttp.open("POST","GetDateTime.ashx?ts"+newDate(),false); 阅读全文
posted @ 2012-07-05 19:36 hishanghai 阅读(377) 评论(1) 推荐(0)
摘要:上述错误我遇到两种情况,一种是在打开打开SQL Server 2005时弹出的,另一种是在应用程序连接SQL Server 2005时出现的.归纳了一下,由以下几个原因: 1.数据库引擎没有启动 有两种启动方式: (1)开始->程序->Microsoft SQL Server 2005->SQL Server 2005外围应用配置器,在打开的界面单击"服务的连接的外围应用配置器",在打开的界面中找到Database Engine,单击"服务",在右侧查看是否已启动,如果没有启动可单击"启动",并确保"启动类 阅读全文
posted @ 2012-07-02 20:45 hishanghai 阅读(370) 评论(0) 推荐(0)