create proc Paging ( @beginid int, @endid int ) as Declare @News table ( RowNumber int, NewsId int, Did int, NewsName varchar(100), [Time] varchar(40), Author varchar(20), ClickTime int, NewsDetails varchar(6000), NewsPictureUrl varchar(60), Oid int default(0) ) insert into @news select Row_Number() over (order by news.newsid), NewsId,Did,NewsName,[Time],Author,ClickTime,NewsDetails, NewsPictureUrl,Oid from news where did=1 select rownumber,newsid,Time, case when len(newsname)<18 then newsname else substring(newsname,0,18)+'...' end as newsname from @news where RowNumber>=@beginid and RowNumber<=@endid
------解决方案-------------------- 商量下,不行那就换一家吧
------解决方案-------------------- http://www.svnhost.cn/Download/Detail-147.shtml//一起交流一下,昨天上午写的(用户控件)