<% Html.RenderPartial("hello", new HelloInput { Name = "Jimmy" } ); %>
<%=Html.Hello("Jimmy") %>
所以我想知道如何创建这个助手:
public static string Hello(this HtmlHelper helper, string name)
{
return the result of rendering partial view "hello" with HelloInput{ Name = name };
}