I was looking to using the Twitter Bootstrap Modal windows as a partial view. However, I do not really think that it was designed to be used in this fashion; it seems like
I do this with mustache.js and templates (you could use any JavaScript templating library).
In my view, I have something like this:
...which lets me keep my templates in a partial view called Modal.ascx:
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
×
{{Name}}
ID {{Id}}
Name {{Name}}
I create placeholders for each modal in my view:
<%foreach (var item in Model) {%>
<%}%>
...and make ajax calls with jQuery:
Then, you just need a trigger somewhere:
<%foreach (var item in Model) {%>
<%=Html.Encode(item.DutModel.Name)%>
<%}%>