I have a requirement where I ask user for confirmation and also display messages.

The programmers used for this were from Windows forms background. Hence have used the MsgBox in every nook and corner. Even in business logic part they have used the Messageboxes which requires Yes/No style confirmation from user.

When we tested the site from the remote machine we found that it gives error of using DefaultDesktopOnly/ServiceNotification. But when tested we found that this is totally different from what we were looking for.

Now my requirement is a confirmation box is shown from the code like Delete record" yes no and based on the reply we take the action.

This is to be done using updatepanel.