Questions tagged as 'asp.net-mvc'

0
answers

Line Break for CheckBox

I'm trying to make in my Razor HTML form screen a scheme to play the "Material Pickup" checkbox for the line below, but I'm not getting it, when selecting the "Water Quantity" option, two new ones appear below which are "Public" and "Private", i...
asked by 20.12.2018 / 21:22
1
answer

How to redirect to an action in asp.net mvc, using jquery?

How to redirect to an action in ASP.Net MVC, using JQuery? I'm trying to do this: $("#Filtro").change(function () { @Url.Action("Answer"); });     
asked by 12.12.2018 / 00:06
0
answers

Receiving StackOverflow when invoking a ViewComponent

I'm creating a ViewComponent and I'm getting a Stackoverflow when invoking it public IViewComponentResult Invoke() { return View(new CidadeViewModel { Cidades = _cidadeRepository.Cidades.Count(),...
asked by 23.12.2018 / 19:24
0
answers

What's wrong with my Update?

Good morning. I'm a beginner and I'm having problems with my Update. I wonder what I'm doing wrong. public string Update(Usuario usuario) { var sql = new StringBuilder(); sql.Append("UPDATE TBUSU SET " + Environment...
asked by 05.12.2018 / 13:52
1
answer

Policy Alias - What would it be? [duplicate]

Good afternoon guys, I've been studying C #, I've come to see about the using directive, and in the C # documentation it says it has 3 uses, one of 3 usage items says it's meant to create an alias for a namespace or a type, but what would i...
asked by 04.12.2018 / 18:34
1
answer

Calling a Modal via Html.ActionLink

I have a screen that does the user's password change. This screen shows the user name and clicking the name, it is directed to the screen to change the password. As I would do to make this call with a modal, I already have the scripts, but I...
asked by 30.11.2018 / 16:43
1
answer

Is it bad practice to return ViewModel from a WebService?

It is a bad practice to use the same class that is used as ViewModel , which Action passes to View , to return data from a WebService ? (type those methods marked with [WebMethod] ) I do not think so, but it might give me problems...
asked by 18.03.2014 / 20:49
0
answers

Problems using the GoogleMaps.LocationServices API in ASPNET MVC

I'm working on a development that plots multiple longitude and latitude locations from the SQL SERVER database that load on a map after typing some search data. Below is the screen with the problem that does not load my Google Map, I'm using the...
asked by 22.11.2018 / 21:18
1
answer

How do I make the selected item in a Categories List reallocate in the first position

In my application I have an area with several category links that is a PartialView. The following categories come from the following Categories of ControlController var categorias = db.Categorias.ToList(); Shoes | Health and Beauty | Sup...
asked by 11.11.2018 / 15:58
0
answers

Reference Error Assembly in Asp.net MVC

I have a DDD project in VS 2017 and Asp.Net MVC, using SDK 2.1.201. I formatted my computer and reinstalled VS 2017 and SDK 2.1.201 ... but when I open the project, it gives compilation error in all layers related to the assembly Microsoft.AspNe...
asked by 09.11.2018 / 22:05