Posts by developer033 • 223 points
5 posts
-
2
votes2
answers691
viewsA: Popular Dropdownlist with JSON
I found the answer, for someone who in the future might need, here it is: I just inserted it into my method, into the controller: myContext.Configuration.ProxyCreationEnabled = false;…
-
1
votes2
answers691
viewsQ: Popular Dropdownlist with JSON
-- Controller -- [WebMethod] public ActionResult GetSellers() { List<Seller> sellers = db.Sellers.ToList(); return Json(sellers, JsonRequestBehavior.AllowGet); } -- View --…
-
4
votes1
answer93
viewsQ: Onselectionchanged MVC
Late, How can I call the Onselecionchanged event from a DDL using MVC? I have the following DDL: @Html.DropDownListFor(model => model.Type, ViewBag.Type as SelectList, "-- Select --", new { id =…
-
1
votes1
answer777
viewsA: Data formatting works on Chrome and does not work on Internet Explorer, or vice versa, with MVC C#
Try: [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:d}")]
-
4
votes1
answer643
viewsQ: Problem with Decimal (4,2)
I have an MVC project, I am using Entity Framkework and in my database there is a table with a column of type decimal (4,2). The problem is: I try to insert any value, for example: 5.00 // 5,00 //…