Click here to Skip to main content
15,908,437 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
i cant able to run this modalpopup extender not responding anything
please help me


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

<%@ 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>Untitled Page</title>
    <style type="text/css">
        .modalBackground
        {
            background-color: Black;
            filter: alpha(opacity=90);
            opacity: 0.8;
        }
        .modalPopup
        {
            background-color: #FFFFFF;
            border-width: 3px;
            border-style: solid;
            border-color: black;
            padding-top: 10px;
            padding-left: 10px;
            width: 300px;
            height: 140px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    <asp:Button ID="Button1" runat="server" Text="Button" />
    
    <asp:ModalPopupExtender   ID="ModalPopupExtender1" BackgroundCssClass="modalBackground" PopupControlID="Panel1" TargetControlID="Button1" runat="server">
    </asp:ModalPopupExtender>
    <asp:Panel ID="Panel1" runat="server" CssClass="modalPopup" Height="300px" Width="200px" style="background:#ccc;  ">
    hai
    this is panel 
    </asp:Panel>


    
    
    </div>
    </form>
</body>
</html>
Posted
Updated 5-Dec-12 19:57pm
v2
Comments
sreeCoderMan 6-Dec-12 2:15am    
hello krunal rohit do u know the answer?
VishwaKL 6-Dec-12 2:54am    
you getting any error ?
sreeCoderMan 6-Dec-12 3:32am    
no error but its not popping

1 solution

this problem occurs generally when we don't set 'cancelcontrolid' property.
please try setting it too.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900