<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <style type="text/css"> .style1 { width: 80%; } .ModalPopupBG { background-color: #666699; filter: alpha(opacity=50); opacity: 0.7; } .HellowWorldPopup { min-width: 200px; min-height: 150px; background: white; } </style> </head> <body> <form id="form1" runat="server"> <div> <asp:ScriptManager ID="ScriptManager1" runat="server"> <table align="center" class="style1"> <tr> <td> <asp:Button ID="Button1" runat="server" Text="Button" /> <asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" BackgroundCssClass="ModalPopupBG" PopupControlID="Panel1" TargetControlID="Button1" BehaviorID="ModalPopupExtender1"> </td> </tr> <tr> <td> <asp:Panel ID="Panel1" Style="display: none" runat="server"> <div class="HellowWorldPopup"> This is a simple modal dialog </div> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> </table> </div> </form> </body> </html>
display
asp:panel
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)