Open an ASP control inside Jquery modal dialogue

Total Post:117

Points:821
 1259  View(s)
Ratings:
Rate this:

I have a requirement to open up a Jquery modal dialogue but it's contents needs to be either a .aspx or .ascx, is this possible?

 

I know that the dialogues usually open a div from the same page but I need to be able to load them up from other places and need to be able to send data to and from the modal contents as well.

 

Any help is appreciated.

  1. Post:194

    Points:1396
    Re: Open an ASP control inside Jquery modal dialogue

    You can use jQuery.load 

    $("#mydiv").load("pageToLoad.aspx #container");

    pageToLoad.aspx: 

    <html>
        <body>
            <div id="container">
                <!--stuff goes here -->
            </div>
        </body>
    </html>

    Probably it will work but haven't tried it.

      Modified On Apr-07-2018 01:46:21 AM

Answer