随笔分类 - ASP.NET
摘要:http://toastergremlin.com/?p=308Sometimes when using a wildcard SSL or Unified Communications Certificate (UCC) it is necessary to add multiple https ...
阅读全文
摘要:安装说明:http://tech.163.com/06/0206/11/299AMBLT0009159K.html按照上面一步步去做,到最后一步的时候却提示说failed to open the winNT service manager,很是不解,通过在csdn上发帖询问,终于知道了答案:原来是软件安装时与windows7的“用户账户控制”(UAC)冲突,只要先关闭UAC(控制面板-用户账户和家庭安全-系统和安全-行动中心,里面有“更改用户账户控制设置”,改成从不通知,完成后会提示重启,此时需要重启一下)再安装就没问题了,安装完后可以再修改回来。http://hi.baidu.com/pen
阅读全文
摘要:namespace Test{ class Program { private static List<Student> list1 = new List<Student>(); //声明一个用于放置初始值的集合 注:必须声明List类型而不是IList接口类型 private static List<Student> list2 = new List<Student>(); //用户存放筛选结果 static void Main(string[] args) { //声明实例化student对象 Student stu1 = new Stude
阅读全文
摘要:http://blog.csdn.net/n67628814/archive/2011/06/09/6533080.aspx本程序思路是以一个人为起点,10天为一个周期,进行传染病的传染,当能够传染到其他人时,再以那个人为起点继续传染。依此递归下去。public class Infection { static int N = 13; static int men = 1; public static void main(String[] args) { infection(N); System.out.println("第" + N + "天共有" +
阅读全文
摘要:做网页抓取的时候用到正则替换,走了很多弯路,内伤!转一个文章原文 http://www.cnblogs.com/lavandachen/articles/1986159.html想说替换一个字符串里的某段字符,并且只替换一次。想自己写又麻烦,后来看了下才发现Regex.Replace里有很多其他的参数都没注意。C#执行一次替换,可以使用这则表达式来实现,正则的Replace有6中重载版本,可以指定替换次数了开始位置。比较类型在构造正则表单时时指定,不在Replace方法中指定。Regex构造函数Regex(string pattern)Regex(string pattern,RegexOpt
阅读全文
摘要:爬虫,又称蜘蛛,是从别的网站抓取资源的一种方法,C#.NET使用爬虫的方法如下:protected string GetPageHtml(string url) { string pageinfo; try { WebRequest myreq = WebRequest.Create(url); WebResponse myrep = myreq.GetResponse(); StreamReader reader = new StreamReader(myrep.GetResponseStream(), Encoding.GetEncoding("gb2312")); p
阅读全文

浙公网安备 33010602011771号