Results 1 to 2 of 2

Thread: AJAX help needed: ModalPopupExtender

  1. #1

    Thread Starter
    Lively Member bcass's Avatar
    Join Date
    Dec 2007
    Location
    Island of Dots
    Posts
    108

    AJAX help needed: ModalPopupExtender

    I've been through about 20 different AJAX ModalPopupExtender examples now, and I can't get a single one to work. I've registered my assembly reference:

    Code:
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="act" %>
    I've put everything inside a form and have the corresponding panel and button(s) setup:

    Code:
    <form id="form1" runat="server">
    <asp:scriptmanager id="ScriptManager1" runat="server">
    </asp:scriptmanager>
        
    <asp:Button runat="server" ID="btnEditCustomer" Text="Edit text" />
    <asp:Panel runat="server" ID="pnlEditCustomer">test message</asp:Panel>
    
    <act:ModalPopupExtender ID="ModalPopupExtender1" runat="server"  
    TargetControlID="btnEditCustomer"
    PopupControlID="pnlEditCustomer"
    BackgroundCssClass="modalBackground"
    OkControlID="editBox_OK"
    OnOkScript="yes()" />
    The button appears on my page, but nothing happens when I click on it. I'm using VS2008, outputting to Firefox 3.6.16 and have the latest AJAX Toolkit installed (VS2008 allows me to drag and drop the controls without any problems or compiler errors).

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: AJAX help needed: ModalPopupExtender

    Hello,

    It is most likely that there is some form of JavaScript error on the page.

    Have you checked the JavaScript console to see what is going on?

    Gary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width