What are the advantages of rendering a control like this:
<% Html.RenderPartial("MyControl") %> or
<%=Html.TextBox("txtName", Model.Name) %>
over the web Forms style:
<uc1:MyControl ID=MyControl runat=server />
I understand that performance can be one reason because no object needs to be created but having the possibility of calling it from the codebehing just to do some basic rendering logic can be very useful.
If this is discouraged then how you are suposed to deal with this scenarios:
You need to make the control visible conditionally and you dont want to fill your HTML with rendering logic.
You have
<input type="text" value="<%= Model.Name %>" />
but you need to check if Model is null because otherways a NullPointerException will raise.
[EDIT] I asked this when I was beginning with ASP MVC, now I see the advantages of the MVC way like in Cristian answer.