Click here to Skip to main content
11,641,668 members (63,203 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET ASP.NET4.0
Hi,

I created a web application in which I used ModalPopUp Extender. Project runs well on development machine but when I deployed on IIS 6 on Windows Server 2003 R2 machine, it didn't display popup.

My .aspx and .cs file contents given below:

.cs File
--------
Dim modalPop As New AjaxControlToolkit.ModalPopupExtender()
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
CallModalPOPUP()
End If
End Sub

Private Sub CallModalPOPUP()
Panel3.Visible = True
modalPop.ID = "popUp"
modalPop.PopupControlID = "ModalPanel"
modalPop.PopupControlID = "Panel3"
modalPop.TargetControlID = "btncreatemodel"
modalPop.DropShadow = True
modalPop.Enabled = True

modalPop.BackgroundCssClass = "modalBackground"
modalPop.CancelControlID = "btnCancel"
Me.Panel1.Controls.Add(modalPop)
Me.ModalPanel.Controls.Add(Panel3)
modalPop.Show()
End Sub

.aspx File
-----------
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Dashboard.aspx.vb" Inherits="JSSG_web._Default" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<%@ Register assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>
<!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">
.modalBackground {
background-color: Gray;
filter: alpha(opacity=30);
opacity: 0.3;}
.modalPopup {
width: 350px;
height: 200px;
background-color: #076DAB;
color: #FFFFFF;
border-color: #000000;
border-width: 1px;
border-style: solid;
text-align: center;
cursor: move;
font-size: medium;}
</style>

</head>
<body>
<form id="form1" runat="server" style="background-color:White">



<asp:Image ID="Image1" runat="server" ImageUrl="~/Images/js_header_f.gif" width="100%"
ImageAlign="Middle" />

<asp:Panel ID="Panel2" runat="server" HorizontalAlign="Right" Width="100%">
<asp:Button ID="btncreatemodel" runat="server" Height="1px"
OnClick="btncreatemodel_Click" Text="CreateModal" Width="1px"
ForeColor="White" />
<asp:Label ID="lblusername" runat="server" Text="Log-in User: "
Font-Size="Small" ForeColor="#0033CC"> |
<asp:LinkButton ID="lnkbtn"
runat="server" Font-Size="Small" ForeColor="#0033CC">Log out

<asp:Panel ID="ModalPanel" runat="server" HorizontalAlign="Center" Style="display: none" CssClass="modalPopup">

<asp:Panel ID="Panel3" runat="server">
Enter Parameters



<asp:Label ID="lblaccountid" runat="server" Height="15px" Text="Account ID"
Width="100px">
    
<asp:TextBox ID="txtaccountid" runat="server" Height="15px" MaxLength="6"
Width="100px">
<asp:FilteredTextBoxExtender ID="txtaccountid_FilteredTextBoxExtender"
runat="server" Enabled="True" FilterType="Numbers"
TargetControlID="txtaccountid">



<asp:Label ID="lblstartdate" runat="server" Height="15px" Text="Start Date"
Width="100px">
    
<asp:TextBox ID="txtstartdate" runat="server" height="15px" width="100px">


<asp:CalendarExtender ID="txtstartdate_CalendarExtender" runat="server"
Enabled="True" TargetControlID="txtstartdate" TodaysDateFormat="MM-dd-YYYY">

<asp:Label ID="lblenddate" runat="server" Height="15px" Text="End Date"
Width="100px">
    
<asp:TextBox ID="txtenddate" runat="server" height="15px" width="100px">
<asp:CalendarExtender ID="txtenddate_CalendarExtender" runat="server"
Enabled="True" TargetControlID="txtenddate" TodaysDateFormat="MM-dd-yyyy">





<asp:Button ID="btnclick" runat="server" BackColor="White"
OnClick="btnclick_Click" OnClientClick="CheckDate(txtstartdate,txtenddate)"
Text="Generate" />
<asp:Button ID="btnCancel" runat="server" BackColor="White" Text="Cancel" />




<asp:Image ID="image2" runat="server" Height="7px" ImageAlign="Bottom"
Width="225px" />

</form>
</body>
</html>
Thanks in advance.
Posted 20-Feb-13 22:02pm

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

  Print Answers RSS
0 Mika Wendelius 260
1 DamithSL 248
2 Afzaal Ahmad Zeeshan 129
3 OriginalGriff 120
4 Sergey Alexandrovich Kryukov 80
0 Mika Wendelius 460
1 OriginalGriff 265
2 DamithSL 258
3 CPallini 169
4 Afzaal Ahmad Zeeshan 149


Advertise | Privacy | Mobile
Web02 | 2.8.150731.1 | Last Updated 21 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100