上一页 1 ··· 7 8 9 10 11 12 下一页
  2009年7月6日
摘要: 在.net中提供了一些类来显示和控制Windows系统上的服务,并可以实现对远程计算机服务服务的访问,如System.ServiceProcess命名空间下面的ServiceController 类,System.Management下面的一些WMI操作的类。虽然用ServiceController可以很方便的实现对服务的控制,而且很直观、简洁和容易理解。但是我认为他的功能同通过WMI来操作服务相... 阅读全文
posted @ 2009-07-06 14:23 船长 阅读(707) 评论(0) 推荐(0)
摘要: using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Runtime.InteropServices; namespace W... 阅读全文
posted @ 2009-07-06 13:08 船长 阅读(1134) 评论(0) 推荐(0)
摘要: 使用NetServerEnum,似乎只能获取计算机名,类型,版本等信息.<网友回复>If you are programming for Active Directory, you may be able to call certain Active Directory Service Interface (ADSI) methods to achieve the same funct... 阅读全文
posted @ 2009-07-06 02:37 船长 阅读(992) 评论(0) 推荐(0)
摘要: 如果你使用过P2P终结者或者类似的软件,你会发觉只要一打开就可以看到局域网内部的所有机器,而有时候我们正好有这样的需求,那我们应该怎么样用去获得局域网的所有机器呢?如果你到百度或者GOOGLE上面进行搜索你会发现,网上大致都是采用轮询的方法,让你把所有机器都扫描一遍,如果有反应则表示主机存在,但是这种办法并不可取,不仅耗资源,而且耗时间,即使你单独开一个线程去跑,估计半小时都没有任何结果。网上有人... 阅读全文
posted @ 2009-07-06 02:35 船长 阅读(1577) 评论(0) 推荐(0)
摘要: 应用原因:我做了一个C/S系统。很多客户端连接到服务器来进行数据上报的工作。但由于数据量的巨大,程序经常出现System.OutOfMemoryException的错误。 接下来我要对IIS进行应用程序池的设置,同时也需要修改程序。这时我就想知道,在出现错误时,机器的各个进程的状态。比如当前的服务器有启用哪些进程,这些进程的内存占用为多少,W3WP占用的物理内存与虚拟内存为多少。 于是我写了如下的... 阅读全文
posted @ 2009-07-06 01:25 船长 阅读(1062) 评论(0) 推荐(0)
  2009年7月5日
摘要: 正文: 一、首先要引用一个Excel的组件,我一开始是在Office XP下尝试的,不 成功,后来把XP给干掉,装2k,就成功了,所以这里分享的是Office 2k下 引用相关组件来实现功能的,在工程中引用COM标签中的Microsoft Excel 9.0 Object Library,添加成功后,引用中会多出三个引用项: Excel、Office、VBIDE。 二、具体代码。 usi... 阅读全文
posted @ 2009-07-05 15:44 船长 阅读(296) 评论(0) 推荐(0)
摘要: ProcessInfo[] processInfo = ProcessModelInfo.GetHistory(100);error:Process metrics are available only when the ASP.NET process model is enabled. When running on versions of IIS 6 or newer in worker pr... 阅读全文
posted @ 2009-07-05 11:37 船长 阅读(289) 评论(0) 推荐(0)
  2009年7月3日
摘要: The '..' Characters Are Not Allowed In The Path Parameter For The MapPath MethodPosted July 20, 2006 at 3:49 PM Tags: XStandard WYSIWYG I am covering for someone on vacation was given the task of conf... 阅读全文
posted @ 2009-07-03 23:02 船长 阅读(566) 评论(0) 推荐(0)
  2009年6月20日
摘要: One of the things that was introduced in .NET 2.0 was a new mechanism for managing registration of client script into the page, via the new ClientScriptManager class, instead of the page's dedicated R... 阅读全文
posted @ 2009-06-20 21:18 船长 阅读(433) 评论(0) 推荐(0)
摘要: 第一个是 RegisterStartupScript 方法。当您有一个想要在页面加载时启动的 JavaScript 函数时,最好使用该类。就此列举一例,在 Visual Studio 2005 中创建一个包含两个按钮的 ASP.NET 页面。Button1 和 Button2 分别为这两个按钮的 ID。然后,在 Page_Load 事件内部嵌入以下代码 Page.ClientScript.Regi... 阅读全文
posted @ 2009-06-20 21:10 船长 阅读(425) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 下一页