You seem to come from a Win Forms background. In ASP.NET (actually JavaScript) we have
confirm box[
^] as against Message Box in win form. By default confirm box has ok and cancel button and you can't really change it but you can certainly have customized modal popups which the other poster has already talked about in his answer.
I hope that helps!