Still getting an error on line 29. Line 29 is where the total rows count goes. I've tried this mutliple times and multiple ways cant' get it to work. That's why I tried to hand code. The hand code works except you can't have the redirect message. I've attached the page using the server behavior but still getting the error. Thx