ui-helper

asp.net mvc radio button state

I'm trying out asp.net mvc for a new project, and I ran across something odd. When I use the MVC UI helpers for textboxes, the values get persisted between calls. But, when I use a series of radio buttons, the checked state doesn't get persisted. Here's an example from my view. <li> <%=Html.RadioButton("providerType","1")%><l...

Using ASP.Net MVC UI Helpers in a classic ASP.Net project

Hi guys Just wondering if anyone know if in general you can use the MVC UI helpers in a classic ASP.Net project. Obviously you would have to be mindful not to you the form helper, etc. But I have some helpers that I have built for MVC and wondering if there is anyway I can use them as is in my older project. I know I would need to re...

In MVC 2, how to annotate a class for an UI Helper Template (not a property)?

I know this works for single properties as per Scott Guthrie's blog to auto-magically use a partial view to render a partial model passed to it (UI Helper like in dynamic data): [UIHint("StateDropDown")] public string State { get; set;} But how do you annotate an entire class to use an UI helper like this: [UIHint("Address")] public ...

ASP.NET MVC UI Template: How to mix an IList Model property with EditorFor( m => m.subModel)?

Say you have this: public class ShoppingCart { public IList<CartItem> cartItems {get; set; } } And you do this to render the class: <%= EditorFor( m => m.ShoppingCart, "ShoppingCart") %> How would you do the EditorFor( ??, "CartItem") in the ShoppingCart.ascx? I would think it would look something like this: <% foreach( CartI...