Ok.. nothing fancy .. some html is rendered to the screen .. kewl. So i tried to do the following...
<%= Html.RenderUserControl<MyNamespace.BlahBlah.Views.Shared.Membership>(null, null) %> and nothing gets rendered.
hmm. Why would this be? The first line is the exact same class as the type listed in the < T > section.
Secondly, the Html.RenderUserControl<T> takes TWO arguments,
a) object controlData
b) object propertySettings
the controlData is any data that the control needs to use, to help it render out. I see that as the view data for that control. If there's no view data, then i can assume i set this as null.
But what are PropertySettings? I have no idea, so i'm assuming i set that to null.
:: Never underestimate the predictability of stupidity ::
pure.krome
Member
532 Points
349 Posts
Html.RenderUserControl vs Html.RenderUserControl<T> ?
Mar 12, 2008 01:47 AM|LINK
Hi folks,
i've got the following code, which works.
<%
= Html.RenderUserControl("/views/shared/Membership.ascx") %>Ok.. nothing fancy .. some html is rendered to the screen .. kewl. So i tried to do the following...
<%= Html.RenderUserControl<MyNamespace.BlahBlah.Views.Shared.Membership>(null, null) %> and nothing gets rendered.
hmm. Why would this be? The first line is the exact same class as the type listed in the < T > section.
Secondly, the Html.RenderUserControl<T> takes TWO arguments,
a) object controlData
b) object propertySettings
the controlData is any data that the control needs to use, to help it render out. I see that as the view data for that control. If there's no view data, then i can assume i set this as null.
But what are PropertySettings? I have no idea, so i'm assuming i set that to null.