I'm trying to do a `Response.Write` to pop up a Javascript error message when the script reaches my `catch` block in my ASPX page (not in a code behind or a class).

Here is the code:

```
catch (Exception ex)
{
    Response.Write("<script language=javascript>alert('ERROR');</script>");

    //System.Windows.Forms.MessageBox.Show(ex.ToString());
}

```

The error message I get is: 

```
} expected

```

No idea why it's telling me I need a `}`. Everything has been closed, when I remove/comment out that line and put something else, I don't get any errors so obviously, it's not like I'm missing a closing `}` somewhere...

Why is this happening??