I am generating a javascript alert box from codebehind in asp.net(vb).
The code:
Catch ex As Exception
MesgBox(\"Error in up
To carry on with the answer given by Pointy, your message contains '
characters, which you need to escape.
Try this...
msgedtble = msgedtble.Replace(vbNewLine, "\n").Replace("'","\'")
It is also better to have type='text/javascript'
rather than language='javascript'
... although this is not absolutely necessary.