- 博客(5)
- 收藏
- 关注
转载 导出Excel
static Result<string> ExportExcel(string excelTemplatePath, DataTable dataSource,Dictionary<string, object> constData,string excelName = null ) { var result = new R...
2019-04-25 21:50:00
95
转载 判断用户是否登录,获取用户的customerID
public static string GetShoppingCartID() { HttpContext hc = HttpContext.Current; //如果有登录ID就返回登录ID if (!string.IsNullOrEmpty(hc.User.Identity.Name)) ...
2017-12-06 13:39:00
1275
转载 参数化 模糊查询 '(@str nvarchar(4000))select * from CMRC_Products where ModelName
我们按照常理写成这样:DataSet ds = SqlHelper.ExecuteDataSet(SqlHelper.Connstr, "select * from CMRC_Products where ModelName like '%@str%'", CommandType.Text, new SqlParameter("@str", str));这是...
2017-11-14 19:41:00
840
转载 图片上传预览
前台代码:<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title>&l...
2017-11-14 19:29:00
94
转载 DataTables warning: table id=example - Cannot reinitialise
下面是我的代码,被DataTables warning: table id=example - Cannot reinitialise 困扰半天$(document).ready(function () { var table = $('#example').DataTable({ //ajax 传参 "ajax"...
2017-10-16 21:32:00
269
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人