Questions tagged as 'asp.net-mvc'

2
answers

Update page ajax mvc core

I need to close a modal, and refresh the page, I'm doing it this way: function closeModal() { $('#myModal').modal('hide'); location.reload(); } But the first time it does not work, and then it works normal, does anyone...
asked by 04.06.2018 / 21:53
1
answer

Dates Comparison c #

My question is the following.    Ineedtodisplay2statusesonapagethatwouldbePrimeiroandAlterado,wherethefirstlineofsqlwiththedateof2018-03-0510:24:55.787receivesstatusPrimeiroandthesecondlineofsqlwithdate2018-03-0510:30:09.727receivesstatusAlt...
asked by 05.03.2018 / 15:14
1
answer

Make a query using Entity Framework and Stored Procedures

I have the procedure procRetornaCliente that receives the following parameters: Id, areaAuthentication, City. Mapping it to EDMX, I got a Complex Type ( procRetornaClienteModel ) with all fields mapped, but I do not know how to make a quer...
asked by 03.07.2014 / 14:45
1
answer

Use variable value not yet declared. Circular Reference in C #

I know the question seems absurd but a client of mine passed me an excel spreadsheet that has a variable that is used before having its calculation defined. In excel this calls Circular Reference. I need to do this in my code. Here's the p...
asked by 20.12.2017 / 17:20
1
answer

Modal update while deleting table record - MVC

I have this modal, and I have the delete function, I need the data to be deleted and updated, without closing the modal. Here's how the code looks: This is the modal: <div class="modal fade" id="myModal" role="dialog"> <div class...
asked by 07.08.2018 / 13:16
1
answer

If inside the button

I have this "Receive" button, and this checkbox that when checked, means that the account is removed: IneeditwhenitclicksthebuttonReceive,andthecheckboxisalreadychecked,thatitnotifiesthattheaccounthasalreadybeenreceived,anddoesnotredirectthepag...
asked by 05.07.2018 / 15:11
1
answer

Multiple select list with items already selected using Razor

I'm using Razor to generate a SelectList like this: @Html.DropDownList("StatusImovel", new SelectList(ViewBag.ListaStatus, "IdStatus", "Descricao"), new { @hidden = "hidden", @multiple = "multiple", @form = "nulo" }) I need it...
asked by 03.01.2018 / 13:42
1
answer

How does the life cycle dependency injection work?

How does the 3 life cycles of a dependency injection work such as singleton, transient and scope?     
asked by 13.12.2017 / 23:22
1
answer

Show specific error in ASP.NET MVC

I created a website that works normally, but when I upload it to the hosting server, it shows an error:    Application Server Error '/'. As the error is very generic, it says to include the line <customErrors mode="Off"/> in m...
asked by 28.10.2017 / 15:21
1
answer

Error in Visual Studio 2015 Update 3 Can not Remove Breakpoint

In my project I have a solid breakpoint in Visual Studio that I can not remove. I can add other breakpoints. Some removed, but some did not. Does anyone know how to solve this?     
asked by 07.12.2017 / 13:39