C# pop up window return value

Posted on 2012-04-09
Last Modified: 2012-04-11
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
Question by:zintech
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 36

Expert Comment

by:Miguel Oz
ID: 37825606
LVL 10

Expert Comment

ID: 37825781
Use ModalPopUp Extender control from AJAX library and you can manipulate the pop up based on the logic you want to implement.
LVL 13

Accepted Solution

agarwalrahul earned 500 total points
ID: 37827006
You can use Modal Popup Extender:

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

Modal Popup Dialog Window in ASP.NET

For JQuery Form


Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
JQuery conflicts/syntax issue 4 23
DataTable column sorting incorrectly 2 17
Read text on Table 7 25
Convert VB web project to C# 3 33
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question