locked
Integrating into an existing site RRS feed

  • Question

  • 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

    Monday, October 20, 2008 2:35 PM

Answers

  • User-1597315603 posted
    Hi csdietrich<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
    <o:p> </o:p>
    In your scenario, I would like to suggest you try to check the following thread, in which community members provide good solutions about this topic:<o:p></o:p>
    <o:p> </o:p>
    How to integrate AJAX control toolkit in existing project?<o:p></o:p>
    http://forums.asp.net/t/1122460.aspx<o:p></o:p>
    <o:p> </o:p>
    If I’ve misunderstood the facing issue, please feel free to let me know.<o:p></o:p>
    <o:p> </o:p>
    Thanks.<o:p></o:p>

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, October 22, 2008 1:08 AM