开发者

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() %>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜