摘要:测试代码 :EXEC [GetRecordByPage] 'articleSpeical','id','id,specialName',1,3,0,0,''代码如下:AlterPROCEDURE[dbo].[GetRecordByPage]@tblNamevarchar(255),--表名@fldNamevarchar(255),--主键字段名@selectContentVARCHAR(255),--查询的列名,为空则查询所有列@PageSizeint,--页尺寸@PageIndexint,--页码@IsReCountbit,--
阅读全文
摘要:HttpContext.Current.Response.Clear(); HttpContext.Current.Response.Buffer = true; HttpContext.Current.Response.Charset = "GB2312"; this.Page.Response.Write("<meta http-equiv=Content-Type content=\"text/html;charset=GB2312\">");//解决乱码问题 HttpContext.Current.Response
阅读全文
摘要:因为一般都用T-SQL来执行数据库操作,偶尔现在转到用存储过程,竟然写不来调用过程的返回值了,查了很多资料,都不详细,或者没到点上,也许是我比较笨,呵呵。C# 源代码1///<summary>2///校验用户3///</summary>4///<paramname="user">用户信息</param>5///<returns></returns>6publicstaticintVerifyUser(clsUseruser)7{8intiRet;9stringsql=String.Format(&quo
阅读全文
摘要:[源码下载]Excel导入SQLserver数据库作者:abenmao【页面效果】【前台程序】 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Tra...
阅读全文