How to have the Submit Button run the Sub Routine Before Panel Sho

Discussion in 'ASP .Net' started by AuntieAuntieAuntie, Feb 5, 2009.

  1. I now have my modalpopupextender working, but to well.
    Goal:
    User enters ID number into textbox (working)
    Clicks Submit button which run the click event connecting to db, runs st.
    proc. to determine validity. (working)
    If ID number not found Then (working)
    Show modalpopupexter (not working)
    Show Panel1
    Else
    Hide modalpopupextender
    Hide Panel1
    continue to page 2.
    End If
    End Sub
    My code snippet:
    <asp:Button ID="btnSubmit" runat="server" Height="30px"
    Style="font-size: 12pt;
    left: 20px; font-family: Arial, 'Microsoft Sans Serif',
    'Times New Roman'; position: absolute;
    top: 250px" Text="Submit" Width="71px" />

    <asp:panel ID="Panel1" runat="server" CssClass="modalPopup"
    style="display:none;" Height="84px" Width="400px">
    The Employee ID number you entered is incorrect please try
    again.<br />
    <asp:Button ID="btnOK" runat="server" Text="Me OK" />
    </asp:panel>

    <ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
    BackgroundCssClass="modalBackground"
    DropShadow="true"
    OkControlID="btnOK"
    PopupDragHandleControlID ="true"
    PopupControlID ="Panel1"
    TargetControlID ="btnSubmit">
    </ajaxToolkit:ModalPopupExtender>

    Thank you.

    Aunite
     
    AuntieAuntieAuntie, Feb 5, 2009
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark
    Replies:
    1
    Views:
    1,982
  2. Ghafran Abbas
    Replies:
    0
    Views:
    4,559
    Ghafran Abbas
    Oct 12, 2004
  3. Robin
    Replies:
    3
    Views:
    708
    Patrick Olurotimi Ige
    Apr 28, 2005
  4. Replies:
    2
    Views:
    6,653
  5. Ben
    Replies:
    2
    Views:
    1,243
  6. Lawrence D'Oliveiro

    Death To Sub-Sub-Sub-Directories!

    Lawrence D'Oliveiro, May 5, 2011, in forum: Java
    Replies:
    92
    Views:
    3,075
    Lawrence D'Oliveiro
    May 20, 2011
  7. Replies:
    2
    Views:
    209
    marss
    Mar 20, 2007
  8. Sound
    Replies:
    2
    Views:
    743
    Randy Webb
    Sep 28, 2006
Loading...