Joe,
I am getting and error from your AJAX Control Modal Popup Extender Demo; Microsoft JScript runtime error: Object expected
www.asp.net/.../video-84.aspx
I have try to get this to work in two different ways;
First my code as percieved from your demo -
----------------------------------------------------------- ----------------------------------------
<%@ Page Language="VB" AutoEventWireup="true" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
">www.w3.org/.../xhtml11.dtd">
">www.w3.org/.../xhtml">
Untitled Page
var styleToSelect;
function onOk() {
document.getElementById('Paragraph1').className = styleToSelect;
}
------css code------------------------------------------------------- ----------------------------------------------------------- ------------------
div#DIV1
{
position: relative;
float: right;
background: yellow;
padding: 1px;
}
.asplinkbutton
{
background-color: green;
}
.watermark
{
background: #FFAAFF;
}
.popupControl{
border: 2px solid Black;
background-color: #AAD4FF;
position:absolute;
visibility:hidden;
border-color:Black;
border-width:2px;
}
.modalPopup
{
background-color:#ffffdd;
border-width:3px;
border-style:solid;
border-color:Gray;
padding:3px;
width:250px;
}
.sampleStyleA
{
background-color:#FFF;
}
.sampleStyleB
{
background-color:#FFF;
font-family:Monospace;
font-size:10pt;
font-style:italic;
font-weight:bold;
}
.sampleStyleC
{
background-color:#ddffdd;
font-family:sans-serif;
font-size:10pt;
font-style:italic;
}
.sampleStyleD
{
background-color:blue;
color:white;
font-family:Arial;
font-size:10pt;
}
.modalBackGround
{
background-color:Gray;
filter:alpha(opacity=70);
opacity:0.7;
}
----------------------------------------------------------- ----------------------------------------------------------- ----------------------------
When I could not get my code to work I copy/past'd Jonathan Shen's post into a new ajax web site (download from your demo site is a diffent project).
forums.asp.net/.../1762667.aspx
This code gives me the same error; Microsoft JScript runtime error: Object expected
I did need to make two changes to the code;
Johan's code looks like ---------------------------------------
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>