ModalPopup extender

Last post 12-06-2006 11:49 AM by Balzak. 1 replies.

Sort Posts:

  • ModalPopup extender

    12-06-2006, 10:20 AM
    • Member
      405 point Member
    • TempestT-37
    • Member since 06-19-2002, 12:44 PM
    • Kansas
    • Posts 85

    Hello

    I have a page where an employee can enter data for a building permit. Closes to the bottom of the page there is a dropdown control for ‘Type of Improvement’. Occasionally a new Improvement Type needs to be entered.

     

    What I would like to do is use something like the ModalPopup extender control to add the new Improvement Type to the sql db and refresh the dropdown. I think this is possible I just can’t figure out how to do it. I think I have come close but all the help I find on google use something different then beta2.

    I feel I am closes using this tutorial http://codingatlas.wordpress.com/2006/09/15/sliding-task-lists-project-%e2%80%93-building-an-atlas-application-from-a-scratch/

     

    Can anyone direct me to a tutorial to help me with this?

    TIA

    Michael

  • Re: ModalPopup extender

    12-06-2006, 11:49 AM
    • Member
      12 point Member
    • Balzak
    • Member since 12-04-2006, 2:10 PM
    • Posts 3

     u can try make the modalpopup like the exemple below and dont associate an cancel or an ok button to modal then u can use the server side events and do wathever u want i just dunno why when i use the cancel button propertie this mess with my other buttons on my page >.<

    and to open and close the modal use MyModalExtender.Show(); and MyModalExtender.Hide();

    <asp:Panel ID="Popup" runat="server" CssClass="modalPopup" Style="display: none">
        <asp:Label ID="lblResult" runat="server" Text="Original Content" /><br />
    
          <asp:ImageButton  runat="server" ImageUrl="~/layout/botoes/ok.gif" ID="OK" OnClick="OK_Click" CausesValidation="false" />
    </asp:Panel>
    <asp:Button ID="Target" runat="server" Style="display: none" />
    <ajaxToolkit:ModalPopupExtender ID="MyModalExtender" runat="server" TargetControlID="Target"
        PopupControlID="Popup" BackgroundCssClass="modalBackground" DropShadow="true" /> 
    
     
Page 1 of 1 (2 items)