Hello
there is one LLBLGEN datasource2 control and asp.net GridView on page.
EnablePaging = true in LLBLGEN datasource2
GridView:
AllowPaging = true
PageSize = 10
then i have used sql server profile to track sql:
the sql as below
exec sp_executesql N'SELECT COUNT(*) AS NumberOfRows FROM (SELECT [csb].[dbo]....)) TmpResult',N'@CompanyId1 int,@IsDeleted2 bit',@CompanyId1=9,@IsDeleted2=0
exec sp_executesql N'SELECT [csb].[dbo]....',N'@CompanyId1 int,@IsDeleted2 bit',@CompanyId1=9,@IsDeleted2=0
the second sql will return all records, why paging doesn't work?
and "get count" sql has low performance. do we have another way to get count?
please advise.
any ideas will be appreciated.
envionment as below
.net framework 3.5
dnn 5.5.x
llblgen pro 2.6 (self-servicing mode)
iis7
sql server 2005