I'm dealing with quite large datasets here, and my application seems to throw an IO timeout exception if i set ignorepaging to true and there's too much data.
So what i've done is created a hiddenfield for my total record count and i want to limit the number of records exported to 500, in the hope this will avert said exception, see below:,
However this doesn't work. I'm assuming because the pagesize has already been set to 20, thus only 20 records are being exported.
Is there a way i can achieve the above results or are there any other suggestions you'd recommend?
So what i've done is created a hiddenfield for my total record count and i want to limit the number of records exported to 500, in the hope this will avert said exception, see below:,
If hd_rowcount.Value > 499 Then
Me.rg_properties.PageSize = 500
Me.rg_properties.ExportSettings.IgnorePaging = False
End If
However this doesn't work. I'm assuming because the pagesize has already been set to 20, thus only 20 records are being exported.
Is there a way i can achieve the above results or are there any other suggestions you'd recommend?