Mar 12, 2008 01:47 AM|pure.krome|LINK
i've got the following code, which works.
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.