Error in MoalPopUpExtender - Need Experts reply

Posted by Sathya4260 under ASP.NET on 1/29/2011 | Points: 10 | Views : 1463 | Status : [Member] | Replies : 2
Hi Experts,

When i try to use modalpopup extender in using VS 2008, I cannt able to show the popup, whenthe click button event runs the popup shows and goes off, i think auto even postback of button event makes me trouble, Below i provide my code, kindly have an look and let me know where i went wrong,

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ModalPopUp.aspx.cs" Inherits="ModalPopUp" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<head id="Head1" runat="server">
<style type="text/css">
background-color: Yellow;
filter: alpha(opacity=60);
opacity: 0.6;
<form id="form1" runat="server">
<div style="min-height: 700px; height: 307px;">
<asp:Button ID="Button1" runat="server" Text="Click here to show the modal" />
<asp:ModalPopupExtender ID="ModalPopupExtender1" BackgroundCssClass="modalBackground"
runat="server" CancelControlID="btnCancel" OkControlID="btnOkay"
TargetControlID="Button1" PopupControlID="Panel1" Drag="true"
<asp:ScriptManager ID="ScriptManager1" runat="server">
<div id="Panel1" runat="server">
<div id="popup_Container" runat="server">
<div id="PopupHeader" runat="server">
<div id="TitlebarLeft" runat="server">Popup Header</div>
<div id="TitlebarRight" runat="server"></div>
<div id="popup_Body" runat="server">
This is a simple modal dialog
<div id="popup_Buttons" runat="server">
<input id="btnOkay" value="Done" runat="server" type="button" />
<input id="btnCancel" value="Cancel" type="button" runat="server" />

Sathish Kumar S


Posted by: Prabhakar on: 1/29/2011 [Member] [MVP] Starter | Points: 25

Hi sathya

i am refer u this link ...

I think it's working for u

Best Regard's

Sathya4260, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sathya4260 on: 1/29/2011 [Member] Starter | Points: 25

thanks for reply,

I found the correct way...

Sathish Kumar S

Sathya4260, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response