摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.IO;namespaceIISControlService{publicclassUtility{publicstaticvoidLogToFile(stringmsg,LogStatestate){try{string_logfile=System.C... 阅读全文
posted @ 2006-03-17 23:42 伊飏 阅读(758) 评论(0) 推荐(0)
摘要: usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.DirectoryServices;usingSystem.Text.RegularExpressions;usingSystem.Collections;namespaceIISControlService{/**////<summary>... 阅读全文
posted @ 2006-03-17 23:40 伊飏 阅读(656) 评论(2) 推荐(0)
摘要: //创建请求HttpWebRequestmRequest=WebRequest.Create("http://www.a.com/Login.aspx")asHttpWebRequest;mRequest.Method="POST";mRequest.ContentType="application/x-www-form-urlencoded";mRequest.AllowAutoRedirect... 阅读全文
posted @ 2006-03-17 20:17 伊飏 阅读(596) 评论(0) 推荐(0)
摘要: HTML文件:<html><head><scripttype="text/javascript">functionshowCmd(){alert("Ok");}</script><xml:namespaceprefix="BNet"><?IMPORTnamespace="BNet"implementation="a.htc">... 阅读全文
posted @ 2006-03-17 20:09 伊飏 阅读(565) 评论(0) 推荐(0)
摘要: publicstaticstringGetAppPath(){returnAppDomain.CurrentDomain.BaseDirectory.TrimEnd(newchar[]{'\\'})+"\\";} 阅读全文
posted @ 2006-03-17 20:01 伊飏 阅读(376) 评论(0) 推荐(0)