随笔分类 - c#
摘要:hash哈希表简介 这里仅仅是对哈希表作简单概念级介绍(摘自csdn),如果需要,自己去研究。 1、哈希表的概念 哈希表(Hash Table)也叫散列表,是根据关键码值(Key Value)而直接进行访问的数据结构。它通过把关键码值映射到哈希表中的一个位置来访问记录,以加快查找的速度。这个映射函数
阅读全文
摘要:if (ds.Tables[0].Rows.Count != 0) { var list = GetJsonString(ds.Tables[0]); jsonStr = "{'jsonStr':'" + list + "','result':'1'}"; } public string GetJs
阅读全文
摘要:/// <summary> /// 服务器端产生客户端脚本的封装类 /// </summary> public class jsHint { public jsHint() { // // TODO: 在此处添加构造函数逻辑 // } /// <summary> /// 弹出提示信息 /// </s
阅读全文
摘要:一般处理程序代码: XmlDocument xmldoc = new XmlDocument(); xmldoc.AppendChild(xmldoc.CreateXmlDeclaration("1.0", "UTF-8", null)); XmlElement firstElement = xml
阅读全文
摘要:private void btnadd_Click(object sender, EventArgs e) { int fileCount = 0; foreach (Control c in this.flowLayoutPanel1.Controls) { i...
阅读全文
摘要:private void write_listview(DataSet ds) { DataTable dt = ds.Tables[0]; dataGridView1.DataSource = dt.DefaultView; for (int i = 0; i 0) ...
阅读全文
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Di...
阅读全文
摘要:string err = "Hellod world"; FileStream fs = null; string filePath = HttpContext.Current.Server.MapPath("~/Error.txt"); if (!File.Exists(filePath)) {
阅读全文