Solved

Modal page in asp.net

Posted on 2016-09-27
3
39 Views
Last Modified: 2016-11-08
I have a page that is open by a button's event. But this aspx is opened in another page, and I need to open it in the same page as a modal window.
Can anyone help me with that?
0
Comment
Question by:Fábio Menezes
[X]
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
3 Comments
 
LVL 21

Accepted Solution

by:
Tapan Pattanaik earned 250 total points
ID: 41818243
Hi Fábio Menezes,

This is a sample example. For more details Please check the below links.

<asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>

            <asp:Button ID="Button1" runat="server" Text="Button" />

            <cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
                CancelControlID="btnCancel" OkControlID="btnOkay"
                TargetControlID="Button1" PopupControlID="Panel1"
                PopupDragHandleControlID="PopupHeader" Drag="true"
                BackgroundCssClass="ModalPopupBG">
            </cc1:ModalPopupExtender>

            <asp:Panel ID="Panel1" Style="display: none" runat="server">
                <div class="HellowWorldPopup">
                    <div class="PopupHeader" id="PopupHeader">Header</div>
                    <div class="PopupBody">
                        <p>This is a simple modal dialog</p>
                    </div>
                    <div class="Controls">
                        <input id="btnOkay" type="button" value="Done" />
                        <input id="btnCancel" type="button" value="Cancel" />
                    </div>
                </div>
            </asp:Panel>

Open in new window

ASP.NET AJAX Control Toolkit ModalPopupExtender Control in Action:
http://www.codeproject.com/Articles/34996/ASP-NET-AJAX-Control-Toolkit-ModalPopupExtender-Co

AJAX Control Toolkit ModalPopupExtender Tutorial in ASP.NET C#:
http://www.ajaxtutorials.com/asp-net/ajax-control-toolkit-modalpopupextender-tutorial-in-asp-net-c/

Building Modal Popup using ASP.Net AJAX ModalPopupExtender Control :
http://www.aspsnippets.com/Articles/Building-Modal-Popup-using-ASPNet-AJAX-ModalPopupExtender-Control.aspx
0
 
LVL 52

Assisted Solution

by:Ryan Chong
Ryan Chong earned 250 total points
ID: 41819176
you can also try some plugins for your page as well, for examples, check this article

14 jQuery Modal Dialog Boxes
https://www.sitepoint.com/14-jquery-modal-dialog-boxes/
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

623 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