Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6830277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:35:56+00:00 2026-05-26T22:35:56+00:00

I have two different buttons viz save and update. I want to open single

  • 0

I have two different buttons viz save and update. I want to open single pop-up window for both buttons, then how can I do so.? More over if pop-up is open on save buttons click then when ever it is closed, it should directed to OnClick_save() button event and if it is open from update buttons, on pop-up colse, it should directed to OnClick_Update() buttons click event.

How can I do so??
This is my code

<tr>
<td>
<table id="tblButton" runat="server">
   <tr>
       <td>
            <asp:Button ID="btnAdd" runat="server" Text="Add" Visible="false"  />
      &nbsp;<asp:Button ID="btnUpdate" runat="server" Text="Update" Visible="false" />&nbsp;<asp:Button ID="btnDelete" runat="server" Text="Delete" Visible="false" />
      &nbsp;<asp:Button ID="btnTargetButton" runat="server" Text="PopUpTarget" Visible="false" />
       </td>
   </tr>
 </table>
</td>
            </tr>
        </table>
    </td>
</tr>
<cc1:ModalPopupExtender ID="ModalPopupExtenderSave" runat="server"    TargetControlID="btnTargetButton" PopupControlID="passwordPopUp" DropShadow="true"   PopupDragHandleControlID="header" BackgroundCssClass="modalBackground" BehaviorID="ModalPopupExtenderSave" />

</table>
<asp:Panel ID="passwordPopUp" runat="server" Style="display: none; padding: 10px;
border: 1px; border-style: solid;" BackColor="#91C83B" Width="300px"   HorizontalAlign="Center"
BorderStyle="Solid" BorderWidth="5px">
<table class="TABLE100">
    <tr>
        <td colspan="3">
            <h3 style="text-align: center;" id="header">
                Confirm Password</h3>
        </td>
    </tr>
    <tr>
        <td colspan="3">
            &nbsp;
        </td>
    </tr>
    <tr>
        <td>
            &nbsp;
        </td>
        <td width="50px">
            <asp:Label ID="lblPasswrd" runat="server" Text="Password" Font-Bold="True" Font-Size="Larger"></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtPassword" runat="server" SkinID="TextBoxLong"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            &nbsp;
        </td>
        <td>
            &nbsp;
        </td>
        <td>
            &nbsp;
        </td>
    </tr>
    <tr>
        <td>
            &nbsp;
        </td>
        <td>
            &nbsp;
        </td>
        <td>
            <asp:Button ID="btnSubmit" runat="server" Text="SUBMIT" Width="70px" OnClick="btnSubmit_Click"/>
        </td>
    </tr>
</table>
</asp:Panel>

Some how I have solved the problem up to certain extent.
Now the problem is three different buttons viz. Insert, Update and delete buttons are responsible for opening pop-up window which in turn opens an ASP:panel the panel contains submit button. So on submit button, can I know which button was responsible for opening a panel.???

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:35:56+00:00Added an answer on May 26, 2026 at 10:35 pm

    You can use a hidden button as modal popup’s Okbutton and call then button OnClick from code. from both Save and Updated buttons.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two radio buttons both set as async triggers for an update panel
I want to have user select between two different buttons on a view, If
I have two submit buttons in one form. I want to call different actions
I'm using asp.net webGrid in which i have two buttons which both open same
I have two different styles for my window: Regular - window has title bar
I have two different modules that need access to a single file (One will
I have two submit buttons part of two different forms. They are being displayed
I have a django form with two different submit buttons, on the view where
Right now I have two buttons. Each one needs to produce a different sound.
I am using jQuery to customize some radio buttons. I have two different radio

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.