This project is read-only.

on .net 3.5 you can ignore the helpers with many parameters and use these instead:

    
    <%=Html.AjaxDropdown(new AjaxDropdownParams{Prop="Hobby"}) %>

    <%=Html.Autocomplete(new AutocompleteParams { Prop = "HobbyA", Controller = "HobbyAutocomplete", Delay = 0 })%>

    <%=Html.AjaxRadioList(new AjaxRadioListParams { Prop = "Fruit" })%>

    <%=Html.AjaxCheckBoxList(new AjaxCheckBoxListParams() { Prop = "Fruits" })%>

    <%=Html.MakePopup(new MakePopupParams() { Action = "SayHi" })%>
    <%=Html.PopupActionLink(new PopupActionLinkParams { Action = "SayHi" })%>

so basically instead of doing this:

<%=Html.Lookup("Country", prefix :"m", height: 300, width: 400 })%>

you do this:

<%=Html.Lookup(new LookupParams { Prop = "Country", Prefix = "m", Height = 300, Width = 400 })%>

also for Lookup Controllers

//in the search action you have to return an IEnumerable of object
 public ActionResult Search(string search)
 {            
     ...
     return View(@"Awesome\LookupList", result.Cast<object>());
 }

Last edited May 11, 2011 at 9:58 AM by o, version 1

Comments

No comments yet.