摘要: //获取应用程序所在目录的2种方式(绝对,不受工作目录影响,建议采用此方法获取路径).如:d:\Users\xk\Desktop\WebApplication1\WebApplication1\bin\Debug\netcoreapp2.0\ String basePath1 = AppContex 阅读全文
posted @ 2019-11-03 17:19 咖啡无眠 阅读(3299) 评论(0) 推荐(0) 编辑
摘要: @{ ViewBag.Title = "Grid/Grid"; var F = Html.F();} @section body { @(F.Grid().IsFluid(true).CssClass("blockpanel").Title("表格").ShowHeader(true).ShowBo 阅读全文
posted @ 2019-11-03 17:16 咖啡无眠 阅读(575) 评论(0) 推荐(0) 编辑
摘要: 案一:Try...Catch(执行效率不高) private bool IsNumberic(string oText) { try { int var1=Convert.ToInt32 (oText); return true; } catch { return false; } } 方案二:正则 阅读全文
posted @ 2019-11-03 14:29 咖啡无眠 阅读(2882) 评论(0) 推荐(0) 编辑