- 博客(5)
- 资源 (2)
- 收藏
- 关注
原创 sharepoint2013 跟着登录用账号判断是否属于某一个AD组
public static DirectoryEntry GetDirectoryObject() { DirectoryEntry oDE; oDE = new DirectoryEntry(ADPath); oDE.Username = AdministratorUser;
2014-09-24 16:43:13
582
原创 DIV属性
position 决定 DIV tag 是如何放置的。“relative”意思是DIV的位置是相对于其他 tag 的,而“absolute”是说 DIV tag 的位置是相对于它所在的窗口。 left 相对于窗口左边的位置 top 相对于窗口上边的位置 width DIV tag 的宽度。所有在 DIV 里的文字或html都在里面。 height DIV tag 的高度。这个性质很
2013-05-10 15:34:26
864
原创 根据一个值查找表,根据表名查询出表的基础属性
--查询出一个表的基本信息SELECT colum.NAME 列名,types.NAME 类型,colum.isnullable 是否可以为null,colum.length 长度 FROM sys.syscolumns colum,sys.systypes types WHERE colum.xusertype=types.xusertype and colum.id=OBJECT_ID('
2013-05-09 15:32:42
934
原创 操作txt文件(记事本)
//创建对象 StreamReader sr = new StreamReader("文件.txt", Encoding.Default); //内容中的分隔符 string[] str = sr.ReadLine().Split(','); //释放资源 sr.Close(); //创建对象 StreamWriter sw = File.AppendText("文件.txt"); //开始写入
2013-04-10 14:45:21
722
原创 操作excel,进行新增,查询,修改
打开连接string str = System.IO.Path.GetFullPath("文件.xlsx"); string StrConn = "Provider=Microsoft.ACE.OLEDB.12.0;" + "Data Source=" + str + ";Extended Properties='Excel 8.0;HDR=Yes'"; OleDbConnection M
2013-04-10 14:33:53
914
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人