I have some code attached that does some serious database crunching and returns about 18,000 rows into a datareader which gets bound to a gridview. That parts seems to be working ok but the page freezes and I can't do the last function, which is export to excel. I realize this page is not the best designed, but I sure could use some help. The debugger is not telling me anything useful. When I run the sql code straight through the database it takes a few minutes to run, which is about the same as the web page. And when I run smaller data sets, it works fine. Thanks.