Questions tagged as 'asp.net-mvc'

1
answer

Problem with Bootstrap Modal

Hello! My problem is this: ThisbuttoncallsModalBootstrap:<buttonclass="btn btn-default details" data-id="@item.nome"><i class="fas fa-street-view"></i></button> This is the Modal Bootstrap page; <div class="modal...
asked by 01.06.2018 / 15:25
1
answer

Object reference not set to an instance - Foreign Key Null

Gentlemen, I have a relationship between two tables, Employee and Documents (1: N) There are two steps in my system: 1 ° - The receptionist registers with basic information a document that arrives at the institution and sends an email to t...
asked by 10.05.2018 / 14:02
2
answers

Register a user "admin" when running the application c # mvc

Good afternoon, I need some idea for a web system to automatically create a user Admin as soon as I run (open) the application. That is, when running the application with a zeroed bank, so that I do not have to register any users before loggi...
asked by 05.06.2018 / 19:29
1
answer

EntityFramework + Sql Server + ASP.NET MVC

Hello, I have an ASP.NET MVC application that is using the ORM EntityFramework to communicate with a SQL Server database! Currently I switched to a computer and had to install everything again, Visual Studio, and SQL Server Management. But whe...
asked by 05.05.2018 / 00:25
1
answer

How do I get a list of JS objects in Controller C # MVC?

I have an object with a list that will return me 3 or more items. I pass this object like this: var jsonObjs = JSON.stringify(arrayObj); alert(jsonObjs); CarregaNotas(jsonObjs); functionCarregaNotas(notas){jQuery.ajax({type...
asked by 30.04.2018 / 14:40
1
answer

How to group buttons inside a column in a table so that they do not change when the column is adjusted

I have a table that has 4 action buttons inside a cell of a column. When the names begin to get larger in size, the table starts to auto-adjust and in the Actions column the 4 buttons are released and some of them begin to descend to the bottom...
asked by 28.04.2018 / 21:22
1
answer

Error CS0266 Can not convert implicitly

When trying to make a listing where I only filter the 5 largest records by values in descending order this error is occurring:    Error CS0266 Can not implicitly convert type   "System.Linq.IQueryable" in   "System.Collections.Generic.ICollec...
asked by 25.05.2018 / 15:03
1
answer

Crystal Report does not allow to create parameter

I'm trying to create a parameter in Crystal Report and when I click OK nothing happens. Is there limitation of crystal parameters in a project? I read something similar in another forum. Was it some configuration? What I did was: Right click on...
asked by 11.06.2018 / 16:41
1
answer

Mvc List only available and not occupied rooms

I have the following problem: A reservation has a client and a room associated with it. When creating a reservation, I have to fill in some fields (such as customer name, date of entry, date of departure and the room where you will be staying)....
asked by 22.05.2018 / 17:01
1
answer

Good practices for traffic object JSON [closed]

I have a grid (kendo ui MVC) today it has 35163 lines, and I need to create a button to export the contents of the grid to CSV. I thought of doing something like that, the moment I load the information to feed the grid, generate a JSON object...
asked by 29.05.2018 / 13:19