Open an ASP control inside Jquery modal dialogue

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.

Last updated:12/1/2014 7:18:08 AM

1 Answers

Anonymous User
Anonymous User

You can use jQuery.load 

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


        <div id='container'>
            <!--stuff goes here -->

Probably it will work but haven't tried it.