Using VS2010, and I've tried the 3.5 and 4.0 distributions.
"Microsoft JScript runtime error: Unable to get value of the property 'UI': object is null or undefined"
The toolkit is registered:
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
I have a ScriptManager referenced (I've also tried with the toolkit scriptmanager)
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
I have a panel with some sample controls
<asp:panel ID="pnlPopup" runat="server" style="background-color:Blue; display:none">
<asp:TextBox ID="txtPopup" runat="server" />
</asp:panel>
And a ModalPopupExtender
<asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
PopupControlID="pnlPopup" TargetControlID="lblAddMessage" >
</asp:ModalPopupExtender>);
});
The page breaks with a jscript error in "Sys.Application.add.init(function() {} on the line
$create(Sys.Extended.UI.ModalPopupBehavior, {"PopupControlID":"ContentPlaceHolder1_pnlPopup","dynamicServicePath":"/WebForms/Search.aspx","id":"ContentPlaceHolder1_ModalPopupExtender1"}, null, null, $get("ContentPlaceHolder1_lblAddMessage"));
I've seen one suggestion to toggle off display:none, and the error is still thrown. Also saw a suggestion to change the tagprefix for the registration, and the error's still thrown.
I'd much rather use this than jQuery (which I'm pretty unfamiliar with). Does anyone have an idea as to what might be happening? Thanks
Comments: Thanks for the response, Rdavidd, but this seems like a more gnarly issue. The first toolkit I downloaded was 4.0, and it was released, iirc, last Saturday. I'd expect it to play nice with all the current versions of IE. As always seems to happen, this was a toss-off request from my project manager, which consumed half my day. I've used custom control kits from DevExpress, Infragistics and other vendors before, but have never had these kinda problems. Part of the problem may lie with the fact that I've got so much going on in this page. MasterPage Page I'm working on Panel on the page I'm working on which is dynamically shown/hidden I've spent way too much time on middle-tier or backend stuff recently. The ASP.NET server controls are things that have escaped my attention for the last six or seven years.
"Microsoft JScript runtime error: Unable to get value of the property 'UI': object is null or undefined"
The toolkit is registered:
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
I have a ScriptManager referenced (I've also tried with the toolkit scriptmanager)
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
I have a panel with some sample controls
<asp:panel ID="pnlPopup" runat="server" style="background-color:Blue; display:none">
<asp:TextBox ID="txtPopup" runat="server" />
</asp:panel>
And a ModalPopupExtender
<asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
PopupControlID="pnlPopup" TargetControlID="lblAddMessage" >
</asp:ModalPopupExtender>);
});
The page breaks with a jscript error in "Sys.Application.add.init(function() {} on the line
$create(Sys.Extended.UI.ModalPopupBehavior, {"PopupControlID":"ContentPlaceHolder1_pnlPopup","dynamicServicePath":"/WebForms/Search.aspx","id":"ContentPlaceHolder1_ModalPopupExtender1"}, null, null, $get("ContentPlaceHolder1_lblAddMessage"));
I've seen one suggestion to toggle off display:none, and the error is still thrown. Also saw a suggestion to change the tagprefix for the registration, and the error's still thrown.
I'd much rather use this than jQuery (which I'm pretty unfamiliar with). Does anyone have an idea as to what might be happening? Thanks
Comments: Thanks for the response, Rdavidd, but this seems like a more gnarly issue. The first toolkit I downloaded was 4.0, and it was released, iirc, last Saturday. I'd expect it to play nice with all the current versions of IE. As always seems to happen, this was a toss-off request from my project manager, which consumed half my day. I've used custom control kits from DevExpress, Infragistics and other vendors before, but have never had these kinda problems. Part of the problem may lie with the fact that I've got so much going on in this page. MasterPage Page I'm working on Panel on the page I'm working on which is dynamically shown/hidden I've spent way too much time on middle-tier or backend stuff recently. The ASP.NET server controls are things that have escaped my attention for the last six or seven years.