摘要:
C#的split函数分割 var words = strs.Split((string[])strlist, StringSplitOptions.RemoveEmptyEntries); 阅读全文
摘要:
select COUNT(*) from ( select ID,H1 AS Value from Table_1 union all select ID,H2 from Table_1 union all select ID,H3 from Table_1 union all select ID,H4 from Table_1 union all... 阅读全文
摘要:
#region 加载数据到DataGraidView private void button1_Click(object sender, EventArgs e) { string excelPath = textBox1.Text.Trim(); //string excelPath = "测试.xlsx"; /... 阅读全文
摘要:
字段名 说明 类型 DictID 字典id Int ParentID 父ID Int DictType 字典类型 Nvarhcar50 DictValue 字典值 Nvarhcar50 Remark 备注 Nvarhcar1000 CreateUserID 创建用户id Int CreateTime 阅读全文
摘要:
[HttpPost] public ActionResult Layedit() { var files = Request.Files; //获得所上传的所有文件 if (files.Count > 0) { HttpPostedFileBase fil... 阅读全文
摘要:
dt = new DataTable(); dt.Columns.Add("a"); dt.Columns.Add("b"); dt.Rows.Add(1); object[] iis = new object[2]; iis[0] = 1; iis[1] = 2; dt.Rows.Add(iis) 阅读全文
摘要:
使用 return Json(pageList, JsonRequestBehavior.AllowGet); 返回object 使用 return Content(JsonConvert.SerializeObject(pageList, timeConverter)); //返回json字符串 阅读全文
摘要:
var filename = ""; //去掉扩展名 if (file.FileName.LastIndexOf(".") != -1) { filename = file.FileName.Substring(0, file.FileName.LastIndexOf(".")); } else { 阅读全文
摘要:
阅读全文
摘要:
public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { string str1,str 阅读全文