Adding the page or folder to robot.txt will do the trick however also use rel="no follow" in the iframe just to make sure:
Code:
<iframe
src ="/page.asp"
width="100%" rel="nofollow">
</iframe>
I would not write the content in Java Script just in case SE develop the ability to do so.