Click here to Skip to main content
13,457,673 members
Rate this:
Please Sign up or sign in to vote.
See more:

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
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"
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" "">

<html xmlns="">
<head runat="server">
<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;}

<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"
<asp:TextBox ID="txtaccountid" runat="server" Height="15px" MaxLength="6"
<asp:FilteredTextBoxExtender ID="txtaccountid_FilteredTextBoxExtender"
runat="server" Enabled="True" FilterType="Numbers"

<asp:Label ID="lblstartdate" runat="server" Height="15px" Text="Start Date"
<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"
<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" />

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
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.180322.1 | Last Updated 21 Feb 2013
Copyright © CodeProject, 1999-2018
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