When I do a project, I suddenly discovered an interesting call. In the .NET web program, you can use the system pop-up box in the Window package. You can pop up the prompt box on the server if the server is clicked in the pop-up box. Buttons, client IE can continue to run, otherwise it seems that there is an infinite loop in the code of the server, always running. The example is as follows:
if (MessageBox.Show ( "you sure you want to delete?", "tips", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1, MessageBoxOptions.ServiceNotification) == DialogResult.OK)
{// do some useful things}
Parameters MessageBoxOptions use another parameter and serviceNotification differences, no different parts
Using this method can be sent by the client to the server to send visual notifications, but use the Windows control. This usage is used for use, but it is very narrow. As for where it will be useful, you will experience yourself! ! But you feel very wonder! !