开发者

Can I get a partial view with a query in ASP.NET MVC?

开发者 https://www.devze.com 2022-12-16 06:39 出处:网络
Is it possible to grab a partial view开发者_JAVA技巧 with a querystring? Such as <%Html.RenderPartial(\"MyPartial/5\")%>?<%Html.RenderPartial(\"MyPartial\", 5)%>

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

精彩评论

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