I am getting an error when entering this coding in my page:

dataRS.MoveFirst
if dataRS.Find("dbcolumnHeader = 1") then
Response.Write ("<script language=""javascript"">timedRefresh(30000);</script>")
else
Response.Write ("<script language=""javascript"">timedRefresh(300000);</script>")
End if

The error says "An error occurred on the server when processing the URL."