First of all, please kiss away the thought of using any of the default or built-in pop up windows for doing this, such as alert dialog boxes etc.
If you want to show a pop-up window, you create one using a simple HTML container element, which is a simple
div
element. Now, the code to load that page is pretty much simple, you would use a simple Ajax request to request for the data. You're not concerned with any of the C# code here, you just want to render the HTML document here. So, create a HTML web-page as this one (I am going to write the code for pop-up window only),
<div class="pop-up" style="display: none;">
<!--
</div>
.. you can add other styles to make it float over other elements too. Now, write the JavaScript code to create a new Ajax request and call for data. Like this,
$(document).ready(function () {
$.ajax({
url: 'link-of-page-to-download',
success: function (data) {
$('.pop-up').html(data);
$('.pop-up').show();
}
});
});
In the above code, if there is no error in the ajax request, the resources (HTML document and other data attached; required, to it) will be downloaded to your page and then they will be added to the pop-up window which at that time is empty. Once that is done, it will be shown using that method
.show()
.
For more information on jQuery ajax, please read
this document[
^].