I’ve added new constructs for replacing
< % Html.RenderPartial("~/Shared/LogOnUserControl.ascx", model); %>
< % Html.RenderPartial().Shared.LogOnUserControl(model); %>
Notes:
For more details read my previous article Strong typing views in ASP.NET MVC. The new template is attached below.
StrongTypedViews.zip (2.60 kb)
Other related articles:
Strong typing routes in ASP.NET MVC