1 prompt dialog box: response. write ("<SCRIPT> alert ('message'); </SCRIPT>"); 2. confirm that the cancel dialog box is in the page_load () event, add the property: button to the button that you want to display a confirmation prompt. attributes. add ("onclick", "Return confirm ('do you want to perform this operation? '); "); 3 OK, then jump to response. write ("<SCRIPT> alert ('message'); window. location = 'url'; </SCRIPT> ");
The Network is a golden place, and you can find a surprise accidentally. This is not the case. You find an "eeeksoft. Web. popupwin. dll", a free and beautiful dialog box pop-up.
He has the following features:
1: The Animation Mode is displayed, just like the prompt box of MSN.
2: Pretty
3: You can open a more detailed content webpage.
4: automatic shutdown, no need to manually confirm the OK
5: easy to use
Simple usage:
Public void showmessage (string MSG)
{
// Response. Write ("<SCRIPT> alert ('" + MSG + "'); </SCRIPT> ");
Eeeksoft. Web. popupwin Pop = new eeeksoft. Web. popupwin ();
This. Controls. Add (POP );
Pop. Text = MSG;
Pop. Message = MSG;
Pop. Title = "XXX-system ";
Pop. windowscroll = true;
Pop. hideafter= 5000;
Pop. dockmode = eeeksoft. Web. popupdocking. bottomleft;
Pop. offsetx = 300;
Pop. offsety = 400;
}
The original functions of 51aspx are described as follows:
1: The Animation Mode is displayed, just like the prompt box of MSN.
2: Beautiful. For details, see the matching diagram.
3: You can open a more detailed content webpage.
4: automatic shutdown, no need to manually confirm the OK
5: The example includes C # and VB. The source file of popup is in the eeeksoft. Web. popupwin folder.
6: easy to use (For details, refer to the Code Pei Wen). Compile the code before using the example.
Last fixed: 10: 57
Author: eeeksoft
Source code download and discussion address: http://www.51aspx.com/CV/PopupWin
Http://www.codeproject.com/KB/custom-controls/asppopup.aspx
Http://www.cnblogs.com/jueban/archive/2008/07/22/946916.html