摘要:
var addDate = "获取到你想要的时间";//注意时间格式是:2012-03-05 11:41:30.910addDate = new Date(Date.parse(addDate.replace(/\-/g, "/")));var now = new Date();var diff = now.getTime() - addDate.getTime();//判断大于七天 if (addDate == 'NaN' || diff > 0 && diff > 7 * 24 * 60 * 60 * 10 阅读全文
摘要:
public static string DataTableToJson(string jsonName, System.Data.DataTable dt) { StringBuilder Json = new StringBuilder(); Json.Append("["); if (dt.Rows.Count > 0) { for (int i = 0; i < dt.Rows.Count; i++) { Json.Append("{"); for (int j = 0; j < dt.Columns.Count; j++) { 阅读全文
摘要:
1 数据库中保存图片名称 在gridview 中展示图片(1)前台代码<asp:GridView ID="gvwattaxhmentlist" runat="server" AutoGenerateColumns="False" SkinID="GvList" GridLines="None" OnRowCommand="gvwattaxhmentlist_RowCommand" OnRowDataBound="gvwattaxhmentlist_RowDat 阅读全文