摘要: http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/e745e812-1644-491f-9034-39855cd16016 阅读全文
posted @ 2012-06-27 01:06 hishanghai 阅读(108) 评论(0) 推荐(0) 编辑
摘要: http://msdn.microsoft.com/en-us/library/ms180833(vs.80).aspx http://www.activexperts.com/activmonitor/windowsmanagement/scripts/activedirectory/user/retrieving/#ListAllowed.htmPS C:\> [byte[]]$hours = @(0,0,0,0,255,3,0,255,3,0,255,3,0,255,3,0,255,3,0,0,0)PS C:\> # create a hashtable to update 阅读全文
posted @ 2012-06-27 00:57 hishanghai 阅读(361) 评论(0) 推荐(0) 编辑
摘要: usingSystem;usingSystem.Collections;usingSystem.Configuration;usingSystem.Data;usingSystem.Linq;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.HtmlControls;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.WebControls.WebParts;usingSystem.Xml.Linq;usingSystem.IO;usin. 阅读全文
posted @ 2012-06-23 00:52 hishanghai 阅读(333) 评论(0) 推荐(0) 编辑
摘要: usingSystem;usingSystem.Collections;usingSystem.Configuration;usingSystem.Data;usingSystem.Linq;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.HtmlControls;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.WebControls.WebParts;usingSystem.Xml.Linq;usingSystem.IO;usin. 阅读全文
posted @ 2012-06-22 20:10 hishanghai 阅读(764) 评论(0) 推荐(1) 编辑
摘要: protectedvoidButton1_Click(objectsender,EventArgse){stringpath="";stringphysicsPath=Server.MapPath(Request.ApplicationPath);//将当前虚拟根路径转为实际物理路径stringtoFindDirectoryName="ss";//要查找的文件夹名FindDirectory(physicsPath+"\\",toFindDirectoryName,outpath);//用递归的方式去查找文件夹if(!string.Is 阅读全文
posted @ 2012-06-22 18:19 hishanghai 阅读(1027) 评论(0) 推荐(0) 编辑
摘要: http://www.codeguru.com/csharp/.net/net_asp/controls/article.php/c12235/ASPNET-Booking-Calendar-User-Control.htmBooking Calendar 阅读全文
posted @ 2012-06-15 19:48 hishanghai 阅读(78) 评论(0) 推荐(0) 编辑
摘要: SELECTCONVERT(VARCHAR,(DATEADD(week,1,getdate())-(DATEPART(DW,DATEADD(week,1,getdate())))),23)as下周一SELECTCONVERT(VARCHAR,(DATEADD(week,1,getdate())-(DATEPART(DW,DATEADD(week,1,getdate())))+1),23)SELECTCONVERT(VARCHAR,(DATEADD(week,1,getdate())-(DATEPART(DW,DATEADD(week,1,getdate())))+2),23)SELECTCON 阅读全文
posted @ 2012-06-15 19:23 hishanghai 阅读(151) 评论(0) 推荐(0) 编辑
摘要: DECLARE@REPORT_DATEDATETIME,@WEEK_BEGININGVARCHAR(10)SELECT@REPORT_DATE=getdate()SELECT@WEEK_BEGINING='MONDAY'IF@WEEK_BEGINING='MONDAY'SETDATEFIRST1ELSEIF@WEEK_BEGINING='TUESDAY'SETDATEFIRST2ELSEIF@WEEK_BEGINING='WEDNESDAY'SETDATEFIRST3ELSEIF@WEEK_BEGINING='THURSD 阅读全文
posted @ 2012-06-15 17:47 hishanghai 阅读(426) 评论(0) 推荐(0) 编辑
摘要: protectedvoidPage_Load(objectsender,EventArgse){SQLHelpersqH;if(!Page.IsPostBack){sqH=newSQLHelper();stringstrSelPro="SELECT[proName]FROM[db_city].[dbo].[tb_province]";DataTabledt=sqH.ExecuteQuery(strSelPro,CommandType.Text);if(dt.Rows.Count>0){DropDownList1.DataSource=dt;DropDownList1. 阅读全文
posted @ 2012-06-14 00:38 hishanghai 阅读(291) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><headrunat="server"><title>无标题页</title><linkhref="css/mycss.css&qu 阅读全文
posted @ 2012-06-11 22:44 hishanghai 阅读(165) 评论(0) 推荐(0) 编辑