Posts by Felipe Renan • 60 points
9 posts
-
0
votes2
answers832
viewsA: Leave div and fixed elements
In div q contains the place animation: div{ overflow:hidden; white-space:nowrap; } This will make whatever is inside your div the size of it, without resizing.…
-
2
votes2
answers483
viewsA: Validation of two fields with jQuery.validate and Dataannotations
I already had this problem once and solved using an IF public ActionResult NomeAction(Model model) { if(string.IsNullOrWhiteSpace(model.client_phone1) &&…
-
0
votes0
answers33
viewsQ: Jscripts work in one view but not in others!
In my project I have a view "Index" where I use the following script: <script>$('#search').focus();</script> Works normally on this view "Index", but if within this view I have a table…
-
-1
votes2
answers88
viewsA: Action Edit in Viewmodel
Try this: [HttpGet] public ActionResult Edit(int? id) { CliCliente cliente = db.x*.Find(id); if (cliente == null) { return HttpNotFound(); } AnamineseViewModel anamnese = new AnamineseViewModel();…
-
0
votes1
answer259
viewsQ: Creation of Foreignkey
Well, in my project I decided to use some Foreign Keys. And after getting this error : {"The INSERT statement conflicted with the FOREIGN KEY Constraint "Fk_dbo.Setors_dbo.Areas_setorareas ". The…
-
-1
votes1
answer259
viewsQ: "Invalid column name" MVC
I have a table in a DbContext, change her name, update to database and when I run I get redirected to Visual Studio with the following error message: Invalid column name 'Setorid'. Obs:The table…
asp.net-mvcasked Felipe Renan 60 -
0
votes2
answers430
viewsA: Hidden attribute in <span></span> element does not work?
You can use this code in Html: <span class="glyphicon glyphicon-trash"></span><span class="glyphicon glyphicon-refresh" id = "ak"></span> In Html I created an Id for this…
-
0
votes1
answer44
viewsQ: The Parameter Conversion from type 'System.String' to type 'Ramalaguia.Models.Sector' failed because no type converter can Convert between These types
During the realization of a project I came across the following error: System.Invalidoperationexception: The Parameter Conversion from type 'System.String' to type 'Ramalaguia.Models.Sector' failed…
asp.net-mvc-4asked Felipe Renan 60 -
2
votes1
answer1134
viewsQ: Selectlist with Viewbag
I’m trying to make a SelectList using ViewBag. But when I run my code it shows where the information I’m trying to access is, for example: NomeProjeto.Models.NomeModel I’m using the following code…