摘要:在很多命令行下,我们要运行某个命令,往往会出现只能显示到路径空格的地方就停下来了,并显示找不到所需要的文件。 比如: 我想使用命令注册某COM,某盘符下某目录(带有空格)下的XXX.DLL regsvr32.exe X:\DD DD\XXX.DLL 则不能成功注册,因为DD DD中有空格存在。 解决的方法为: regsvr32.exe X:\DD" " DD\XXX.DLL 加上英文双引号,而在引...
阅读全文
摘要:public DocumentWindow() { InitializeComponent(); this.SourceInitialized += new EventHandler(OnSourceInitialized); } void OnSourceInitialized(object sender, EventArgs e) { HwndSource source = (HwndSour...
阅读全文
摘要:获取父节点 开始调用 listSource 是List<> 数据集合 (有父子关系) foreach (ModelInfo Item in listSource) { if (Item.ParentID == 0) { ListItem li = new ListItem(); li.Text = Item.Item; li.Value = Item.ID.ToString(); YouDrop...
阅读全文
摘要:WCF RIA Services 部署在IIS 可能出现的问题 应用是Silverlight 4 Business Application,应用了WCF RIA Service, .net framework 4 环境下,所以遇到了一些问题 主要涉及的环境是Windows Server 2003 R
阅读全文
摘要:附加数据库时报错 错误信息如下 An exception occurred while executing a Transact-SQL statement or batch. 详细信息 TITLE: Microsoft SQL Server Management Studio------------------------------ Attach database failed for Ser...
阅读全文
摘要:用户控件 显示行号 复制代码 ? 这是一段程序代码。 <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WebUserControl2.ascx.cs" Inherits="MultiDropdownSample.WebUserControl2" %><script language="javascript" type="te...
阅读全文