Posts by Rodrigo Borghi • 37 points
3 posts
-
-2
votes1
answer232
viewsQ: The Viewdata item that has the key 'officeId' is of type 'System.String' but must be of type 'Ienumerable<Selectlistitem>'
Controller: public ActionResult Cadastrar() { ViewBag.officelist = new SelectList(new OfficeREP().ListarTodos(), "id", "estado" ); [HttpPost] [ValidateAntiForgeryToken] public ActionResult…
-
2
votes2
answers316
viewsA: JSON function Does not return value
Model: public class SegmentMOD { public int id { get; set; } [DisplayName("Segmento")] public string nome { get; set; } } public class SectorMOD …
-
2
votes2
answers316
viewsQ: JSON function Does not return value
I have a problem, I would like to popular my Dropdownlistfor with the result of another Dropdownlistfor, for this I am using Ajax and Json, same concept they do when they want the result of State to…