The Web mode is displayed:
Page code:
<HTML xmlns = "http://www.w3.org/1999/xhtml"> <br/> <pead runat = "server"> <br/> <title> No title page </title> <br/> <MCE: style type = "text/CSS"> <! -- <Br/>. bgcss <br/> {<br/> background-color: Gray; <br/> filter: alpha (opacity = 70); <br/> opacity: 0.7; <br/>}</P> <p> --> </MCE: style> <style type = "text/CSS" mce_bogus = "1">. bgcss <br/> {<br/> background-color: Gray; <br/> filter: alpha (opacity = 70); <br/> opacity: 0.7; <br/>}< br/> </style> <br/> </pead> <br/> <body> <br/> <Form ID = "form1" runat = "server"> <br/> <div> <br/> <asp: scriptmanager id = "scriptm Anager1 "runat =" server "> <br/> </ASP: scriptmanager> <br/> <asp: panel id = "Panel1" runat = "server" Height = "167px" width = "190px" backcolor = "# d0f7de"> <br/> <asp: radiobuttonlist id = "radiobuttonlist1" runat = "server" width = "137px"> <br/> <asp: listitem> reading </ASP: listitem> <br/> <asp: listitem> surfing the Internet </ASP: listitem> <br/> <asp: listitem> wash clothes </ASP: listitem> <br/> <asp: listitem> play out </ASP: listitem> <br/> </ ASP: radiobuttonlist> <br/> <asp: button id = "button2" runat = "server" text = "OK" onclick = "button2_click"/> <br/> <asp: button id = "button3" runat = "server" text = "cancel"/> <br/> </ASP: Panel> <br/> <PC3: modalpopupextender id = "modalpopupextender1" runat = "server" <br/> targetcontrolid = "button1" <br/> popupcontrolid = "Panel1" <br/> dropshadow = "true" <br /> okcontrolid = "button2" <br/> cancelcontrolid = "button3" <B R/> drag = "true" <br/> backgroundcssclass = "bgcss" <br/> popupdraghandlecontrolid = "panel2" <br/> </PC3: modalpopupextender> <br/> <asp: panel id = "panel2" runat = "server" Height = "83px" width = "187px"> <br/> what do you want to do today? <Asp: Label id = "label1" runat = "server" text = "label"> </ASP: Label> <br/> <asp: button id = "button1" runat = "server" text = ""/> <br/> </ASP: panel> <br/> </div> <br/> </form> <br/> </body> <br/> </ptml>
Note: The CSS style is used, and the background color of the pop-up dialog box must be set (Panel1 in the previous example)
Attribute description:
Attribute description
Targetcontrolid is used to control the Control ID of the pop-up window.
Backgroundcssclass: Document background style in the pop-up mode dialog box
The button ID of the cancelcontrolid cancel mode dialog box (this button should be in the mode dialog box)
Drag sets whether the mode dialog box can be dragged
Dropshadow: Specifies whether the mode dialog box can have a shadow.
Background Color of the highlightbackcolor drop-down menu
Okcontrolid: ID of the control in the confirmation mode dialog box
Oncancelscript executes the javascirpt function when you click the cancel button.
Onokscript executes the javascirpt function when you click the OK button.
Popupdraghandlecontrolid the panelid of the drag-and-drop operation.
X coordinates when "Mode" is displayed
Y coordinate of Y when "Mode" is displayed
Panel ID of the popupcontrolid mode dialog box