Questions tagged as 'asp.net-mvc'

1
answer

OCI-22053: overflow error - C #

I'm developing a web application in MVC with C# . I made a method that makes a select in my bank oracle and with the value returned I fill in a DataTable . But it returns an error when I run " dataAdapter.Fill(resultado)...
asked by 12.02.2014 / 13:30
1
answer

Error generating "pie" pie chart in highchart ASP.NET MVC

I'm having trouble generating a pie chart in the style of Highcharts . I have the following code to generate the series: if (vlrTot1 >= 0) { Dictionary<string, object> aSeries = new Dictionary<string, ob...
asked by 03.03.2014 / 15:53
1
answer

Razor - @ Html.DropDownList with dynamic name

I would like to concatenate the ID that I get from @Model in the string of the name property of Dropdownlist because I would like to treat them dynamically. I try to do @Html.DropDownList ("Name" + @ Model.Id) and it does not work. How c...
asked by 31.07.2014 / 20:01
1
answer

Create new directory according to string

I have a function that saves an image to a standard directory for all companies, and I tried to change it to save to a directory according to this companyFolder string I created. But this is not getting saved. How can I do this? [Htt...
asked by 18.12.2018 / 12:19
1
answer

How to call a modal in View by Controller's ActionResult

How to call a modal by ActionResult of the Controller, after the user clicks the button to register? Currently the controller is redirecting to the index page after the user signs up. I want instead of redirect, call the modal that is in the...
asked by 25.10.2018 / 17:48
1
answer

Isolate Presentation Layer Domain

Good software architecture practice says that the presentation layer does not must know the domain layer. I'm trying to make this isolation between these layers, but the which is making this separation difficult is the mapping framework of objec...
asked by 23.10.2018 / 18:01
1
answer

Null object with jquery ajax MVC3

I know I must be forgetting something. I am making a jquery ajax request to send a message via contact form, however the object is arriving null at controller . I tried doing with JSON.stringfy and without it, with it comes th...
asked by 15.11.2018 / 22:43
1
answer

Connect Informix .NET via DSN

Good afternoon, I've been trying to connect an application to an Informix database for some days, but I can not do it at all. I'm using Visual Studio 2017 using ASP.NET Framework 4.6. I tried to find solutions on the IBM site, but that sit...
asked by 05.11.2018 / 14:58
1
answer

Function to include and exclude items according to table

I have this function: foreach (var item in obj.valores) { var ver = db.ProdutosFornecedores.Where(r => r.ProdutoID == item.ProdutoID && r.FornecedorID == item.FornecedorID).Select(r => r.Id).Single();...
asked by 02.10.2018 / 22:45
2
answers

ValidationResult with two parameters

I'm trying to use custom validation, as explained in this link , but there I can only pass one parameter to validate, and I need both, because if the field is empty and the other is false, it has to either fill in the State Registration field o...
asked by 01.10.2018 / 14:05