开发者

How-to Get Best Performance With Large Amount Of Data In aspx page?

开发者 https://www.devze.com 2022-12-30 10:54 出处:网络
I want to display 1000 rows and 80 rows in a GridView. I am little bit worried about the Performance of the application. If you know how to make it better performance ,please tell hw to do that in det

I want to display 1000 rows and 80 rows in a GridView. I am little bit worried about the Performance of the application. If you know how to make it better performance ,please tell hw to do that in detailed way.

   Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then
            Me.FillGrid()
        End If
    End Sub

'Filling The Grid

Private Sub FillGrid()


 Try
        Di开发者_StackOverflow中文版m MyCompany As New Company
        Dim mydsCompanyDSource As DataSet

        mydsCompanyDSource = MyCompany.DisplayData()

        gvCompany.DataSource = mydsCompanyDSource
        gvCompany.DataBind()

    Catch ex As Exception
        CreatelogFile(ex)
    End Try

End Sub

Paging of the gridview is true . if Large amount of data will come , any performance problems will come ?


1000 rows is going to be heavy, anything over a 100 is a good candidate for Paging - only return 10 rows, for example, at a time.

0

精彩评论

暂无评论...
验证码 换一张
取 消