Questions tagged as 'asp.net-mvc'

0
answers

How to call a procedure that uses an out oracle type course with C #

I'm doing a test to find out how to call a procedure that has this type of course. IntheprocedureIhavethis:createorreplacePROCEDURE"PTESTE" ( pcd_servicoagendado integer, ptipo integer, -- 0 principal, 1 debitos p_cursor out pkgcursor.t_cur...
asked by 06.07.2018 / 17:08
1
answer

Error using the add-migration command. Using json as configuration file

Good morning! When I run the add-migration command, to do the migrations, I'm getting the following error: Add-Migration : Exception calling "AddFromFile" with "1" argument(s) : "'basePath' não pode ser uma cadeia de caracteres vaz...
asked by 25.07.2018 / 16:24
0
answers

Table with drag and drop event does not work on mobile

I have a page that user to have the freedom to sort table, and this drag and drop event on the computer works perfectly, but on tablets, mobiles does not work, what should be done for the perfect workings of this event on mobile devices? In...
asked by 02.07.2018 / 23:13
1
answer

HttpPostedFileBase - Bringing null when I have many files with the big name

Good morning Friends next I have a mvc web system with C # and need to upload multiple files simultaneously. Until then, okay, but when the files have a big name of the problem I'll exemplify. I have 5000 xmls to import with the name "NFe3...
asked by 28.06.2018 / 17:25
1
answer

SQL command blocking controller requests in C # MVC

I'm implementing in a C # MVC project, a routine to perform database restore. I have a problem that when I start the restore, the requests of other controllers are stuck waiting for the SQL to finish. What I found strange is that if...
asked by 29.06.2018 / 19:00
0
answers

ASP Net MVC - Insert html helper into string and render via Html.Raw

Talk to people, I have the following situation: I have a list of links registered in the database, which will be loaded according to the user's profile. I'm currently forced to do this: @Html.Raw(listaMenusSistema[i].HtmlMenu); This w...
asked by 29.08.2018 / 20:06
2
answers

Creating a foreach with result of a query coming from the Entity

Hello, I'm trying to make a foreach with a query result, the field I need to go through is a string, but at the time I step into the foreach it is being transformed into another value. I need to compare two date, in case the conversion of the...
asked by 20.06.2018 / 16:00
1
answer

Take the fields from a Select and pass to viewmodel

I have two Selects Multiple where their function is to change values as in the image below: ThefirstoneintherealisaDropDownListwherehelooksforthebankinformation,followshiscode:@Html.DropDownList("Avaible", ViewBag.Account as SelectList, n...
asked by 13.07.2018 / 15:30
0
answers

The field Value Paid must be a number. ASP NET MVC

I have this field in Model: public decimal Valor { get; set; } It writes correctly, and shows me the value this way:    10.00 But when I edit and complete the action, it returns me:    The field Value Paid must be a number. I...
asked by 13.07.2018 / 20:49
1
answer

HttpPostedFileBase always empty when passing csv to the controller

Good Afternoon Personal, I'm having trouble passing a csv that is being sent from ajax using jquery to the controller where it always arrives null. Could you help me? View: @using (Html.BeginForm("Importar", "Contatos", FormMethod.Pos...
asked by 24.06.2018 / 20:12