摘要:
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... 阅读全文
摘要:
public static int ExecuteNonQuery(MySqlConnection connection, CommandType cmdType, string cmdText, params MySqlParameter[] commandParameters) { MySqlCommand cmd = new MySqlCommand(); PrepareCommand(cmd, connection, null, cmdType, cmdText, commandParameters); /... 阅读全文