摘要: WebBrowser wb = new WebBrowser(); wb.ScriptErrorsSuppressed = true; //在这里Navigate一个空白页面 wb.Navigate("about:blank"); //获取html System.Net.WebClient wc = new WebClient(); string htmlcode = wc.DownloadString(url);//下载文件一定要用Directory.GetCurrentD... 阅读全文
posted @ 2012-06-07 15:30 明天的太阳 阅读(197) 评论(0) 推荐(0) 编辑
摘要: public static int ExecuteNonQuery(MySqlConnection connection, CommandType cmdType, string cmdText, params MySqlParameter[] commandParameters) { MySqlCommand cmd = new MySqlCommand(); PrepareCommand(cmd, connection, null, cmdType, cmdText, commandParameters); /... 阅读全文
posted @ 2012-06-07 14:04 明天的太阳 阅读(190) 评论(0) 推荐(0) 编辑