Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 740
  • Last Modified:

C# pop up window return value

I would like to do a pop up window in the C# code when a button is clicked and have it return true or false.  How would I accomplish this
0
zintech
Asked:
zintech
1 Solution
 
Miguel OzSoftware EngineerCommented:
0
 
himanshutCommented:
Use ModalPopUp Extender control from AJAX library and you can manipulate the pop up based on the logic you want to implement.
0
 
Rahul AgarwalTeam LeaderCommented:
You can use Modal Popup Extender:

<asp:Panel ID="Panel1" runat="server" CssClass="ModalPopup ">
                    <table class="Table">
                        <tr>
                            <td class="label" align="center" colspan="2">
                                <asp:ImageButton ID="Button2" runat="server" />
                             
                            </td>
                        </tr>
                     </table>
                </asp:Panel>
                <asp:ModalPopupExtender ID="modalpop" runat="server" TargetControlID="Button1"
                    PopupControlID="Panel1" BackgroundCssClass="modalBackground" CancelControlID="close">
                </asp:ModalPopupExtender>

Modal Popup Dialog Window in ASP.NET
http://www.c-sharpcorner.com/UploadFile/fvolking/ModalPopupInASP.NET11262005000152AM/ModalPopupInASP.NET.aspx

For JQuery Form
http://jqueryui.com/demos/dialog/#modal-form

Reference:
http://social.msdn.microsoft.com/Forums/en-US/winforms/thread/67c57bde-7624-4dd2-a80c-fff2e01a97ca/
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now