This site prevents the posting of any tags other than bold, italics or link.But if you create a simple aspx page and add your suggested javascript you will see that it returns a "Compiler Error Message: BC30037: Character is not valid."Put simply the .net 2 server doesn't like var chkPostBack = '<%= Page.IsPostBack ? "true" : "false" %>';