摘要: using System;using System.Collections.Generic;using System.Text;using System.Configuration;using System.Data;using System.Data.SqlClient;namespace DAL{ public class SQLHelper { //连接字符串 static string strConn = ConfigurationManager.ConnectionStrings["CnnhoRechargePlatformConn... 阅读全文
posted @ 2012-01-06 14:44 守望幸福的猪 阅读(34989) 评论(3) 推荐(2) 编辑
摘要: 插件官方地址:http://plugins.jquery.com/project/pagination插件js源码代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/*** This jQuery plugin displays pagination links inside the selected elements.** @author Gabriel Birke (birke *at* d-scribe *dot* de)* @ver 阅读全文
posted @ 2012-01-06 13:51 守望幸福的猪 阅读(446) 评论(0) 推荐(1) 编辑
摘要: CREATE PROCEDURE [dbo].[GetRecordFromPage] @SelectList VARCHAR(2000), --欲选择字段列表 @TableSource VARCHAR(100), --表名或视图表 @SearchCondition VARCHAR(2000), --查询条件 @OrderExpression VARCHAR(1000), --排序表达式 @PageIndex INT = 1, --页号,从0开始 ... 阅读全文
posted @ 2012-01-06 10:46 守望幸福的猪 阅读(253) 评论(0) 推荐(1) 编辑
摘要: 1、服务器端把数据转换成json格式,把此类封装好共hander类调用。View Code using System;using System.Collections.Generic;using System.Web;using System.Data;using Newtonsoft.Json;using System.Text;using System.IO;/// <summary>///JsonHelper 的摘要说明/// </summary>public class JsonHelper{ public JsonHelper() { // /... 阅读全文
posted @ 2012-01-06 09:35 守望幸福的猪 阅读(2214) 评论(0) 推荐(1) 编辑
摘要: 1、导入操作要做一个类似下面界面的网页,里面有导入csv文件的操作。查找了一些简单资料,写了如下代码:View Code /// <summary> /// 点击导入按钮,进行相应的处理 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnImport_Click(object sender, EventArgs e) { if (flup.Ha 阅读全文
posted @ 2012-01-06 09:03 守望幸福的猪 阅读(1277) 评论(0) 推荐(0) 编辑
摘要: 一、两个时间比较大小 1、可以把两个时间转换成long型的数据直接进行比较View Code /// <summary> /// 判断新时间是否大于旧时间 ///思路: 把时间转换成long型数据直接 相减比较 /// </summary> /// <param name="dtOld">旧时间</param> /// <param name="dtNew">新时间</param> /// <returns>如果新时间大于旧时间返回true,否则返回false</r 阅读全文
posted @ 2012-01-06 08:40 守望幸福的猪 阅读(191) 评论(0) 推荐(0) 编辑