I used to use that javascript function on asp pages. Is there a way to do that on a codebehind page?