Questions tagged as 'asp.net-mvc'

2
answers

How to insert a where inside a linq query

I have the following query : var result = (from line in db.ApadrinhamentoListas group new { line } by new { line.datahora, line.valor_doacao } into grp select new { DataHora = grp.Key.datahora, Valor = grp.Key.v...
asked by 29.11.2017 / 21:11
1
answer

What is the difference between cshtml and html?

Is there any difference between CSHTML and HTML , mainly in security, performance, and application? Is there a loss when using HTML in an ASP MVC project, and what are the benefits of using CSHTML in a project? >     
asked by 10.11.2017 / 23:25
2
answers

DropdownList with BeginCollectionItem

Good Night! I could follow in this same question here
asked by 01.05.2017 / 02:49
3
answers

Select the Controller name using JavaScript

I have the following code and would like to add class="current" to <li></li> according to the controller I'm accessing. I want to do this to make the item stand out. <ul class="nav"> <!-- Main menu --...
asked by 24.11.2016 / 09:46
2
answers

Ping on server with C #

Is there any .NET class with ping functionality? I have the IP of the server in an attribute of type String and would like to ping the server to see if it is online or offline. Does anyone know?     
asked by 20.09.2016 / 17:40
1
answer

Displaying welcome message on navbar!

I'm doing an application in MVC asp.net . When the user logs in, I would like them to display the welcome message with the user name, however you are bringing the email, how do I change it? My action looks like this: @Html.ActionLink("Olá...
asked by 23.01.2018 / 19:34
1
answer

error Migrations C # MVC

I created a Financial Controller, but when I click on the menu to list it returns the error:    Invalid object name 'dbo.Movimentacaos'. Why did you get this name? It was meant to be Movimentacoes . PS: I already added in my cont...
asked by 15.06.2016 / 05:00
2
answers

How to Send a Checkbox to the Controller?

I have a View where a CheckBox exists in a client list in the first column so that it can be possible to select one or more clients and send it to > Controller . In View I'm using pure CheckBox and in the model this same field has the...
asked by 13.06.2016 / 17:32
1
answer

Question: Search with DropDownlist mvc 4 razor asp.net C # sql Server [closed]

I am having difficulty popping the dropdown with sql server, because it comes repeated sql item ... ex: when I select the cities it comes with repeated cities and so on, and I can not direct to the search page. follow the code Controller Home...
asked by 12.09.2016 / 21:09
1
answer

How to insert arrays inside angular objects?

Let's say I have a vehicle object that has the following attributes converting my C # class to Json: { "UsuarioId": 0, "TipoId": 0, "MarcaId": 0, "ModeloId": 0, "VersaoId": 0, "Quilometragem": 0, "AnoFabricacao": 0, "AnoModelo...
asked by 26.01.2017 / 02:14