摘要:        
存储过程:---亲测275万数据,分页速度N快Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->createPROCEDUREPageList@tablenamenvarchar(50),@fieldnamenvarchar(50)='*',@pagesizeint,--每页显示记录条数@currentpageint,--第几页@orderidnvarchar(50),--主键排序@sortint,--排序方式,1表示升序,0表    阅读全文
        posted @ 2013-07-08 17:41
努力实现目标
阅读(616)
评论(0)
推荐(0)
            
        
        
摘要:        
存储过程:GetProductsCount1:GetProductsByPage:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->CREATE PROCEDURE GetProductsByPage @PageNumber int, @PageSize int AS declare @sql nvarchar(4000) set @sql ='select top '+ Convert(varchar, @PageSize)     阅读全文
        posted @ 2013-07-08 17:38
努力实现目标
阅读(335)
评论(0)
推荐(0)
            
        
        
摘要:        
1.调用方法:ExportExcel("application/ms-excel", "EXCEL名称.xls", GridView1, this.Page);2.定义方法: /// /// 另外一种存为EXCEL的方法 /// /// /// /// /// /// Response.ContentEncoding = System.Text.Encoding.GetEncoding("gb2312"); public static void ExportExcel(s...    阅读全文
        posted @ 2013-07-08 17:19
努力实现目标
阅读(1323)
评论(0)
推荐(0)
            
        
        
摘要:        
要在GridView中加入//实现分页AllowPaging="true"//一页数据10行PageSize="10"// 分页时触发的事件OnPageIndexChanging="gvwDesignationName_PageIndexChanging"在服务器事件里Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->protectedvoid gvwDesignationName_P    阅读全文
        posted @ 2013-07-08 17:14
努力实现目标
阅读(799)
评论(0)
推荐(0)
 
                     
                    
                 
                    
                 
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号