---
title: "Open an ASP control inside Jquery modal dialogue"  
description: "Open an ASP control inside Jquery modal dialogue"  
author: "Anonymous User"  
published: 2014-11-30  
updated: 2014-12-01  
canonical: https://www.mindstick.com/forum/12724/open-an-asp-control-inside-jquery-modal-dialogue  
category: "asp.net"  
tags: ["jquery", "model"]  
reading_time: 1 minute  

---

# Open an ASP control inside Jquery modal dialogue

I have a [requirement](https://yourviews.mindstick.com/view/85169/becoming-an-influencer-requirement-of-skills-and-knowledge) to open up a Jquery [modal](https://www.mindstick.com/interview/660/explain-modal-dialog-box) [dialogue](https://answers.mindstick.com/qa/37546/the-syrian-national-dialogue-congress-was-held-at-where) 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](https://www.mindstick.com/articles/13031/why-to-make-a-wikipedia-page) but I need to be able to [load](https://answers.mindstick.com/qa/33737/what-is-meant-by-average-load-time) them up from other places and need to be able to send [data](https://www.mindstick.com/articles/13050/salesforce-aiming-to-dominate-predictive-analytics-with-data-science) to and from the modal contents as well.

Any help is appreciated.

## Replies

### Reply by Anonymous User

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.


---

Original Source: https://www.mindstick.com/forum/12724/open-an-asp-control-inside-jquery-modal-dialogue

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
