OPEN AN ASP CONTROL INSIDE JQUERY MODAL DIALOGUE

jayprakash sharma

Total Post:117

Points:821
Posted by  jayprakash sharma
 945  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. Kamlakar Singh

    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!