Can I get a partial view with a query in ASP.NET MVC?
Is it possible to grab a partial view开发者_JAVA技巧 with a querystring?
Such as <%Html.RenderPartial("MyPartial/5")%>
?
<%Html.RenderPartial("MyPartial", 5)%>
In Partial View:
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<int>" %>
<%= Model.ToString() %>
精彩评论