I figured out the problem. The page in question was the default page for the directory. If you just entered the directory path without the actual filename, it would load the page. Then when you did the post back it would redirect to the default page again. If you enter the full path with filename, the problem does not occur.