Bestcomy.net blog

Coding for funny

导航

2004年6月3日

摘要: 以前我知道在Web中使用模态对话框的时候可以向被打开的窗口传递对象,但是我就是没有想到将父窗口的window对象传递给被打开的窗口,这样就可以在被打开的窗口中控制父窗口中的控件,真是太笨了,害得我以前走了不少弯路,在此与还不了解的朋友分享:父页面(dialog3.htm):This page will invoke my DHTML dialog box when the button is cl... 阅读全文

posted @ 2004-06-03 18:28 bestcomy 阅读(2138) 评论(1) 推荐(0) 编辑

摘要: 上一则随笔提到在Web上使用信使服务关于如何获得局域网(对等网)中的客户机信息,我采用了如下方法:using System.DirectoryServices; //引用命名空间DirectoryEntry entryPC = new DirectoryEntry("WinNT:"); foreach(DirectoryEntry child in entryPC.Childre... 阅读全文

posted @ 2004-06-03 12:35 bestcomy 阅读(2542) 评论(2) 推荐(0) 编辑