MVC

simple ajax controller (for countries etc)

ajax

(these are research notes)

consuming WebApi with MVC
consuming WebApi with MVC

Dynamic content in MVC/Razor

the following contains xml entries to get past razor runtime compilation errors of namespace not found:

  
    
      
        
      
    
    
      
        
        
        
      
    
        
@Html.LabelFor(model => model.path.Value, "Path")
@Html.DropDownList("Path", new List { new SelectListItem { Text = TypeSafeEnum.a.Value, Value = TypeSafeEnum.a.Value }, new SelectListItem { Text = TypeSafeEnum.b.Value, Value = TypeSafeEnum.b.Value }, new SelectListItem { Text = TypeSafeEnum.c.Value, Value = TypeSafeEnum.c.Value }, }) @Html.ValidationMessageFor(model => model.path.Value)