User2073724220 posted
For some reason I am having difficulty integrating AJAX Control Toolkit into and existing web site. I am specifically trying to get the ModalPopup Sample to work.
I downloaded the toolkit from http://www.asp.net/ajax/downloads/
When I run the sample website that is included everything works as expected. I then decided to create a very simple example within my existing web application. I also added the "AjaxControlToolkit.dll" to the /bin directory. When I run the example I don't
get any errors, but the example doesn't function properly. Basically, its as if the "ModalPopupExtender" isn't doing anything at all. The "Dynamic" control isn't hidden at page load. Also, what is strange is that when I'm viewing the code-in-front I get a
warning/error that says: "Cannot resolve Symbol 'TargetControlID'". For a while there I thought something was wrong with my web.config. I went ahead and replaced my old web.config with the example site's web.config (and integrated some of the essentual pieces
of my old web.config). This didn't change anything.
Is there some step that I'm missing?
And for those that like to see some code....
<form id="mainForm" method="post" runat="server">
<ajaxToolkit:ToolkitScriptManager runat="Server" ID="ScriptManager1" />
<asp:Panel ID="Popup" runat="server">
blah..........
<asp:Button ID="OkButton" runat="server" Text="OK" />
<asp:Button ID="CancelButton" runat="server" Text="Cancel" />
</asp:Panel>
<ajaxToolkit:ModalPopupExtender ID="PopupExtender" runat="server"
TargetControlID="LaunchPopupButton" PopupControlID="Popup"
OkControlID="OkButton" CancelControlID="CancelButton"
DropShadow="true" BackgroundCssClass="modalBackground" />
<asp:LinkButton ID="LaunchPopupButton" runat="server" Text="Open up!" />
</form>
Thanks