代码改变世界

SharePoint designer 2010编辑List的表单时出现错误:soap:Server was unable to process request. ---> Value does not fall within the expected range

2010-08-19 11:03 by 程序开发助手, 585 阅读, 0 推荐, 收藏, 编辑
摘要:使用SharePoint designer 2010打开http://localhost的站点,并编辑列表的表单时出现了soap:Server was unable to process request. ---> Value does not fall within the expected range的错误,后来把站点的URL由localhost改成机器名,竟然就OK了。 阅读全文

WMI 访问远程主机 出现Exception:The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)

2010-07-19 15:45 by 程序开发助手, 917 阅读, 0 推荐, 收藏, 编辑
摘要:是因为防火墙阻挡了,在防火墙中添加 Exception: Windows Management Instrumentation (WMI)即可 阅读全文

Linq 之Concat/Union/Intersect/Except/Distinct

2010-07-17 12:42 by 程序开发助手, 436 阅读, 0 推荐, 收藏, 编辑
摘要:List<int> list1 = new List<int> { 1,2,3,4};List<int> list2 = new List<int> { 3,4,5,6};var r = list1.Except(list2).ToList(); //result: 1,2r = list2.Except(list1).ToList(); //res... 阅读全文

安装SCVMM 2008 R2 后,无法登录自助门户

2010-07-15 11:24 by 程序开发助手, 437 阅读, 0 推荐, 收藏, 编辑
摘要:安装完SCVMM 2008 R2后,使用管理员帐户登录自助门户,竟然总是报用户名密码错误,无法登录。Google了一下发现,原来要登录自助门户,必须执行以下两步。 1. 创建自助服务用户角色 参考:如何创建自助服务用户角色 2.将自己加入到 自助服务用户角色 中 阅读全文

silverLight: 修改Datagrid选中行的字体颜色

2010-06-30 18:13 by 程序开发助手, 3573 阅读, 0 推荐, 收藏, 编辑
摘要:在我的这篇文章: 修改silverlight DataGrid当前选中行及选中列的背景色 提到了如何修改Datagrid选中行的背景色,今天我又遇到了修改选中行的背景色的需求。还是和背景色一样,需要定制模板。找到 DataGridRow 默认模板中的如下部分:<localprimitives:DataGridCellsPresenter Grid.Column="1" Name="Cells... 阅读全文

修改silverlight DataGrid当前选中行及选中列的背景色

2010-06-23 19:15 by 程序开发助手, 4225 阅读, 2 推荐, 收藏, 编辑
摘要:silverlight的DataGrid暂时还没有提供属性直接修该其当前选中行的背景色,因此只能通过定制 DataGridRow 的模板来实现。步骤如下: 1. 创建DataGridRow的模板 打开http://msdn.microsoft.com/zh-cn/library/cc278066(VS.95).aspx,找到DataGridRow的默认模板: 将其复制到App.xml,设置样式的... 阅读全文

silverlight: 消除HyperlinkButton点击后出现的边框

2010-05-10 18:26 by 程序开发助手, 1585 阅读, 0 推荐, 收藏, 编辑
摘要:使用HyperlinkButton时,默认情况下,如果点击后总是会出现边框,如下图: 如果想要去掉这个边框的话,必须重新定义HyperlinkButton的默认模板,步骤如下: 1. 用Expression Blend大项目. 2. 打开HyperlinkButton所在页面,并找到它,鼠标右键Edit Template->Edit a copy    选在Application级别定义模... 阅读全文

如何在Google Code上创建开源项目

2010-04-30 11:42 by 程序开发助手, 3574 阅读, 0 推荐, 收藏, 编辑
摘要:1. 申请Google的账号,并登录 2. 打开Google项目托管主页 3. 点击贡献开放源代码项目,进入GettingStarted 4. 点击Create Project,进入创建项目页 5. 填写相关信息,并Create Project Project name: 项目名字,只能是英文 Project summary: 项目的概述,随便写 Project description: ... 阅读全文

转 Introduction to SharePoint Feature Stapling – Part 2

2010-04-23 00:21 by 程序开发助手, 299 阅读, 0 推荐, 收藏, 编辑
摘要:Introduction to SharePoint Feature Stapling – Part 2 05. Nov, 2008 View Comments Welcome to part 2 of my Introduction to SharePoint Feature Stapling. In part 1 I explained the process of creating a fe... 阅读全文

转载 Introduction to SharePoint Feature Stapling – Part 1

2010-04-23 00:16 by 程序开发助手, 415 阅读, 0 推荐, 收藏, 编辑
摘要:Introduction to SharePoint Feature Stapling – Part 1 18. Aug, 2008 View Comments Features allow you to add new functionality to SharePoint or make simple site customizations in an easy and consistent ... 阅读全文