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. Advertising

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. D. Shane Fowlkes

    just tinkering with a Sub Routine in ASP.NET

    D. Shane Fowlkes, Nov 12, 2003, in forum: ASP .Net
    Replies:
    5
    Views:
    427
    Scott M.
    Nov 13, 2003
  2. Neo
    Replies:
    6
    Views:
    399
    Mark A. Odell
    Dec 2, 2003
  3. Ben
    Replies:
    2
    Views:
    867
  4. Lawrence D'Oliveiro

    Death To Sub-Sub-Sub-Directories!

    Lawrence D'Oliveiro, May 5, 2011, in forum: Java
    Replies:
    92
    Views:
    1,979
    Lawrence D'Oliveiro
    May 20, 2011
  5. Sound
    Replies:
    2
    Views:
    430
    Randy Webb
    Sep 28, 2006
Loading...

Share This Page