It's quite complicated when you are using runat server controls like gridview and datalist etc.
To achieve your goal:
- You need to create web service
- Get records from data base by using the service and JavaScript
- Append the result at bottom by using JavaScript
These are things you need to do, and many other problem will start when you will work with server controls.