Looking something like this:
How to create a modal popup in ASP.NET MVC 3 using Jquery [
^]
Roughly, something
like this[
^]:
@Html.ActionLink("OpenPopup", "OpenPopup", new { id = model.Id }, new{ @class = "dialog"} )
<script type="text/javascript">
$(function (){
$('a.dialog').click(function() {
var url = $(this).attr('href');
var dialog = $('<div style="display:none"></div>').appendTo('body');
dialog.load(url, {}, function (responseText, textStatus, XMLHttpRequest) {
dialog.dialog({
close: function(event, ui) {
dialog.remove();
}
});
});
return false;
});
});
</script>