There are two types of Popup extenders in AJAX ASP.NET
1. The ModalPopup Extender: allows a page to display content to the user in a "modal" manner which prevents the user from interacting with the rest of the page. The modal content can be any hierarchy of controls and is displayed above a background that can have a custom style applied to it. When displayed, only the modal content can be interacted with; clicking on the rest of the page does nothing. When the user is done interacting with the modal content, a click of an OK/Cancel control dismisses the modal content and optionally runs custom script. The custom script will typically be used to apply whatever changes were made while the modal mode was active. If a postback is required, simply allow the OK/Cancel control to postback and the page to re-render. You can also absolutely position a modal popup by setting the X and Y properties. By default it is centered on the page, however if just X or Y is specified then it is centered vertically or horizontally.
ModalPopup Extender Properties:
Test above ModalPopup Extender Example Clickhere
2. PopupControlExtender: is an ASP.NET AJAX extender that can be attached to any control in order to open a popup window that displays additional content. This popup window will probably be interactive and will probably be within an ASP.NET AJAX UpdatePanel, so it will be able to perform complex server-based processing (including postbacks) without affecting the rest of the page. The popup window can contain any content, including ASP.NET server controls, HTML elements, etc. Once the work of the popup window is done, a simple server-side call dismisses it and triggers any relevant script on the client to run and update the page dynamically.
This ModalPopup will be spawned programmatically. The ModalPopupExtender that this popup is attached to has a hidden TargetControl. The popup can be shown via server in code behind and on the client in script by calling the ModalPopupExtender methods to show and hide.
The control above is initialized with this code. The italic properties are optional:
<ajaxToolkit:PopupControlExtender ID="PopEx" runat="server" TargetControlID="DateTextBox" PopupControlID="Panel1" Position="Bottom" />
- TargetControlID - The ID of the control to attach to
- PopupControlID - The ID of the control to display
- Position - Optional setting specifying where the popup should be positioned relative to the target control. (Left, Right, Top, Bottom, Center)
- CommitProperty - Optional setting specifying the property on the control being extended that should be set with the result of the popup
- CommitScript - Optional setting specifying additional script to run after setting the result of the popup
- OffsetX/OffsetY - The number of pixels to offset the Popup from its default position, as specified by Position.
- Animations - Generic animations for the PopupControlExtender. See the Using Animations walkthrough and Animation Reference for more details.
- OnShow - The OnShow animation will be played each time the popup is displayed. The popup will be positioned correctly but hidden. The animation can use <HideAction Visible="true" /> to display the popup along with any other visual effects.
- OnHide - The OnHide animation will be played each time the popup is hidden.
Here you need