摘要: LInq分页testDataContext dc = new testDataContext(); public string GetPageNum(GridView GridViewName, int pagesize, IQueryable<test> sql) { int page; if (HttpContext.Current.Request.QueryString["page"] != null) page = Convert.ToInt32(HttpContext.Current.Request.QueryString["page&quo 阅读全文
posted @ 2011-12-05 17:38 放哨De老鼠 阅读(701) 评论(0) 推荐(0) 编辑
摘要: ALTER function [dbo].[GetOrderNum](@ebaystockflag varchar(20)//规则字母)returns varchar(100)ASBEGIN declare @dt CHAR(8) declare @flag varchar(20) set @flag='B'+@ebaystockflag set @dt=CONVERT(CHAR(8),GETDATE(),112) declare @max varchar(100) SELECT @max=MAX(OrderNumber) FROM tb_EbayOrder WITH(XLOC 阅读全文
posted @ 2011-12-05 17:34 放哨De老鼠 阅读(2236) 评论(0) 推荐(0) 编辑
摘要: 前台:<asp:DataList ID="DataList1" runat="server" RepeatDirection="Horizontal" RepeatColumns="5" CellSpacing="25"> <ItemTemplate> <img src="<%# Eval("FullName") %>" width="50" height="50" bord 阅读全文
posted @ 2011-12-05 16:49 放哨De老鼠 阅读(710) 评论(3) 推荐(0) 编辑