I am generating a javascript alert box from codebehind in asp.net(vb).
The code:
Catch ex As Exception MesgBox(\"Error in up
JavaScript does not allow string constants to span line breaks.
In your server-side code, you're going to have to replace the newlines in the error message with "\n".