Questions tagged as 'asp.net-mvc'

1
answer

What is causing Malformed Reference Element in my Signature?

I'm trying to sign an XML by passing the reference tag, id, XML, and certificate. In a certain situation it does not work, but I never know what the situation is, it's a bit random. And now, even though I'm changing reference.uri to...
asked by 17.03.2017 / 16:49
1
answer

AutoComplete Jquery [closed]

How can I do a jQuery autocomplete to pull data from a bank? I tried using this example I just can not. My system is in ASP.NET MVC and I am using SQL Server as the database.     
asked by 06.03.2017 / 13:59
1
answer

ASP.NET MVC Error identifying style file

I published a site that is in MVC4 at this address. link When trying to access I get this error message:    "Value can not be null or empty. Parameter name: contentPath" Line where the error occurs: @RenderSection("Styles", require...
asked by 12.01.2017 / 13:25
1
answer

Doubt with EnableCors asp.net web.api

When you are done releasing an address using EnableCors can you use Route or do you need to change anything? is this correct? [HttpGet] [Route("consulta/BuscaTipoPagamento")] [EnableCors(origins: "http://localhost:50907", headers: "*", methods...
asked by 02.01.2017 / 15:07
1
answer

Send External Login Data to Controller

I need to login through Facebook, I have the login page, which renders a @Html.Partial _LoginExternal Follow the code of the two: @using EuVotoAf.Models @model LoginViewModel @{ ViewBag.Title = "Log in"; } <div id="loginbox"...
asked by 25.01.2017 / 13:46
1
answer

Get procedure return in Oracle

I need to execute a procedure in the database (Oracle) that returns me a character (S or N), I'm using the ODP.NET driver, I've tried everything and I could not do this, I even looked at several answers right here in SO PT and OS EN as well....
asked by 07.12.2016 / 17:56
1
answer

How to convert date format to string coming from JSON? (JavaScript MVC C #)

The data looks like this:    Date(-4735141200000) My for: function (dados) { console.log(dados); var len = dados.length; var txt = ""; var toDate; if (len > 0) { for (var i = 0; i < len; i++) {...
asked by 17.01.2017 / 15:46
1
answer

How to take a Domain Entity method to higher layers

Hello, I have the following domain entity. public class Cliente{ [Key] public string CPF{get; set;} public string Nome{get; set;} //Outras propriedades public void Sacar(Conta conta, decimal valor){ conta.Saldo -...
asked by 28.09.2015 / 02:36
0
answers

How to import an external React component into Asp.Net

Hello, I wanted to import an external React component, generated in webpack (Bundle.js) to my Asp.net MVC application. I am trying to import the "Bundle.js" file to my page and render the React component in the babel script tag, but nothing happ...
asked by 16.02.2017 / 21:06
0
answers

How to use PostgreSQL with Entity Framework? [closed]

I have a system that I'm developing in C # WPF using PostgreSQL as DBMS and wanted to use this same database for my ASP.NET MVC application. Is it possible to have the Entity Framework have access to the data that is in the PostgreSQL DBMS to...
asked by 17.02.2017 / 00:24