If you have debugging turned on in IIS, it will pop up the dialog box and the app will stop until it is clicked. Otherwise, it will simply not do anything. Point is, don't use MsgBox on web pages.. there are better alternatives.