Quote:
I didn't know that Msgbox doesn't work with ASP.NET,so where can I find some resource about how to display error through server?
The problem is that MsgBox
does work - but it works on the Server because all VB code is executed there. Since the user isn't sitting at the Server but the Client, he can;t see any message (and in fact doesn't get his page updated because the Server is waiting for a user that isn't there to click an "OK" button he can't see.)
It appears to work in development because the server and client are the same machine. In production, they could be thousands of miles / kilometers apart.
Instead, use
Window alert() Method[
^] to talk to the user, or a control on your page.