Posts by senalen • 51 points
2 posts
-
0
votes1
answer29
viewsQ: Javascript onchange does not work for Combox
I have a Function in javascript that works perfectly for a textbox $('#Year').on('change', function () { alert("test"); }); However, for a combobox, it does not work $('#EntityId').on('change',…
-
5
votes1
answer151
viewsQ: How to avoid repeating "using" in ASP.NET MVC?
I have a controller where several moments have a code similar to this: public ActionResult ListarProduto() { using (DBModels db = new DBModels()) { return View(db.Produto.ToList()); } } How not to…