Solved

Grid too large to display

Posted on 2013-06-20
7
176 Views
Last Modified: 2013-07-25
I'm using ASP.net 3.5.  When the user presses the display button the gridview can display a certain number of rows.  Beyond that the page crashes.  Is there any way to get a proper error message explaining what the problem is (too many rows to display)?
The user can then filter as necessary.
0
Comment
Question by:AlHal2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 41

Expert Comment

by:guru_sami
ID: 39263592
I would suggest implementing Paging with GridView.

If you just want to show message, you can check the records returned from your database and if it's greater than some particular number don't bind it to GV but instead just display a message. Although I am not sure if that's a good idea for your users or not.
0
 

Author Comment

by:AlHal2
ID: 39265229
You've given me the idea of putting the gridview1.databind statement into a try catch block.
This grid has a select button due to this code.
<Columns>
                       
                    <asp:CommandField ShowSelectButton="True" />
               
           </Columns>

The grid is displaying, but when the user presses a select button the page crashes.  It doesn't even look at the code in GridView1_SelectedIndexChanged or form_load events.

However when the grid is smaller it works OK.  Sorry for not mentioning this before.
0
 
LVL 41

Expert Comment

by:guru_sami
ID: 39266432
Check the event logs to see if there are any specific error messages when you do select....
I think it's timing out...
0
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 

Author Comment

by:AlHal2
ID: 39270749
I'm running the source code on my own machine and it times out before executing the form load or selectedIndex change events.
Where would I find the logs?
0
 
LVL 41

Accepted Solution

by:
guru_sami earned 250 total points
ID: 39273075
Are you getting any asp.net errors or just "Page cannot be displayed" message by IE?
You can look for error into Windows EventViewer -> Windows Logs-> Applications
0
 

Author Comment

by:AlHal2
ID: 39287978
Page cannot be displayed
0
 

Author Closing Comment

by:AlHal2
ID: 39353955
Thanks.
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question