08 2012 档案
对非管理员隐藏Site Actions的菜单
摘要:If your site collection was created using the Publishing template, then you can use this fix to hide the New Page option from the Site Actions menu:Go to Site Settings - Master Pages and Page LayoutsOpen the Editing Menu folderEdit CustomSiteAction.xmlPaste the following XML into the CustomSiteActio 阅读全文
posted @ 2012-08-24 12:49 欣静赏悦 阅读(468) 评论(1) 推荐(0)
C#多线程参数传递
摘要:在多线程或单线程任务中,让线程带传入参数一直是个麻烦的问题,通常有种方法就是以类,对像的变量来传参数,这种方法理解上很简单不过在某些场合使用很麻烦,这里就不介绍了,我们主要介绍一种.NET2.0中新增加的带参数运行线程的方法,示例程序如下:ParameterizedThreadStart ParStart = new ParameterizedThreadStart(ThreadMethod);Thread myThread = new Thread(ParStart);object o = “hello”;myThread.Start(o);ThreadMethod如下:public voi 阅读全文
posted @ 2012-08-07 11:15 欣静赏悦 阅读(191) 评论(0) 推荐(0)