I would recommend this stuff, which I found at my local Lowe's Home Improvement store:
Cut a strip as long as you like, then fold it in half so that the sticky sides stick together, and push that down between the dashboard and the windshield. It should work very well!