摘要:
在asp.net2.0中验证控件需要WebForm_OnSubmit这个javascript脚本函数进行验证,但是如果你在OnClentClick 事件中如果直接加上了你自己的写的javascript脚本验证的时候,可能会出现的问题是你的验证控件根本不起作用, 原因如下: asp.net2.0中需要"WebForm_DoPostBackWithOptions(new WebForm_PostBac... 阅读全文
posted @ 2007-09-27 16:20
敌后武工队
阅读(628)
评论(1)
推荐(0)
摘要:
// 下面的方法可以直接调用 private void KillProcess(string processName) { System.Diagnostics.Process myproc = new System.Diagnostics.Process();//得到所有打开的进程 try { fore... 阅读全文
posted @ 2007-09-27 16:11
敌后武工队
阅读(167)
评论(0)
推荐(0)
摘要:
下面的代码实现遍历 IIS 6应用程序池的一个方法: System.DirectoryServices.DirectoryEntry appPoolRoot = new System.DirectoryServices.DirectoryEntry(@"IIS://localhost/W3SVC/AppPools"); //得到默认应用程序池的方法可以直接使用 IIS://localhost/W3... 阅读全文
posted @ 2007-09-27 15:53
敌后武工队
阅读(279)
评论(0)
推荐(0)
摘要:
下面的代码实现应用程序池的创建,并设置一些属性。 string strAppPoolName = "MyAppPool1"; System.DirectoryServices.DirectoryEntry appPoolRoot = new System.DirectoryServices.DirectoryEntry(@"IIS://localhost/W3SVC/AppPools"); Sys... 阅读全文
posted @ 2007-09-27 15:52
敌后武工队
阅读(210)
评论(0)
推荐(0)
浙公网安备 33010602011771号