I am getting page unresponsive error on browser,i bind the dataset to gridview maximum 80 rows or minimum 50 then also getting same error how to solve in that aspx i did not use view state.
Please shar solution.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sandhiya PriyaPosted Jan 6, 2026, 4:24 AM
When you see “Page Unresponsive” in the browser while binding a dataset to a GridView in ASP.NET WebForms (ASPX), even with only 50–80 rows, it usually means the page is doing too much work on the client side or rendering inefficiently. ViewState isn’t the only factor — there are several common causes and fixes:
Common Causes
Heavy ViewState / large HTML output: Even if you disabled ViewState, GridView can still generate large markup with many controls.
Complex templates: If each row has nested controls (DropDownLists, CheckBoxes, etc.), rendering becomes slow.
Client-side scripts: Large grids with many controls can trigger expensive JavaScript execution in the browser.
Synchronous data binding: Binding large datasets directly in Page_Load without paging.
Solutions
1. Enable Paging
Instead of loading all rows at once:
This reduces rendering to only 10 rows per page.
2. Use Efficient Data Binding
Bind only when needed:
Avoid rebinding on every postback.
3. Disable Unnecessary Features
Turn off AutoGenerateColumns if not needed.
Remove unused controls inside GridView templates.
Disable ViewState for GridView if you don’t need it:
4. Optimize HTML Output
Use BoundField instead of TemplateField where possible.
Avoid inline styles; use CSS classes.
Keep markup lean.
5. Consider Alternatives
Use Repeater or ListView instead of GridView for lighter rendering.
For large datasets, implement server-side paging (fetch only required rows from SQL using
TOPorOFFSET/FETCH).Example: GridView with Paging
Sanwar RanwaPosted Aug 13, 2019, 5:12 AM
manish kedarPosted Aug 13, 2019, 4:40 AM
Rajanikant HawaldarPosted Aug 13, 2019, 4:16 AM