Questions tagged as 'asp.net-mvc'

1
answer

Problems loading a DataTable in Page Load with JavaScript

I'm a beginner with JavaScript and I'm having a problem when the DataTable of my Index is loaded. IfIopenasection,inmyIndex,andputtheJScodeinsideit,everythingworksperfectly. @{ ViewData["Title"] = "Gerenciar Situações de Pessoa"; }...
asked by 08.06.2018 / 12:58
0
answers

Doubt in Ajax return handling, receive feedback from an API

I have an asp.net web.api API I'm doing a method that sends the login information, I'm having a hard time making the return processing, even sending erroneous information is passing as certain. <script> var usuario, senha;...
asked by 20.05.2018 / 17:27
0
answers

Put web application online (publish) made in visual studio?

Good, I developed a website in ASP.NET C # in Visual Studio 2013 for a company. This company wants to replace your current website with what I've developed. This site is located on the server of a telephone company. How do I replace the old s...
asked by 04.06.2018 / 16:11
0
answers

Error in Convert.ToDateTime [duplicate]

I have the following code: public JsonResult salvaPaciente(string cns, string sexo, string dataNasc, string nome, string raca, string cep, string ibge, string logradouro, string endereco, string numero,...
asked by 18.05.2018 / 14:45
0
answers

Consume an asmx service from a rest

How do I pass an object I have in a REST to an ASMX ? I have this controller in REST that has the object (client) that I want to send to an ASMX [Route("api/[controller]")] public class OptOutClientController : Controller { HttpClient c...
asked by 25.06.2018 / 20:05
0
answers

Error sending email by external access. Internal access works

Error sending email. I have a form that sends email with attachments. When run from within the company, it works perfectly. When called from outside, that is, when called by the published project, it generates the error of the image below. We al...
asked by 26.06.2018 / 22:12
1
answer

Route.config of website in C # asp.net

I'm building a website. But there is one question that I can not solve. I have a Home Controller where I have all the Site Views. For example, I enter andwhenIclickononeoftheimagestogotoanotherView,, my URL does not appear as I wanted. I wanted...
asked by 16.05.2018 / 11:28
0
answers

How to use the GraphDiff Entity Framework Code First

I have the following tables in my database: Sale Sales Details Products Sales Plots The relationship is as follows: 1 Sale = > N Sales Details 1 Sale = > N Products Sales 1 Sales Details = > N Plots I'm trying to...
asked by 11.06.2018 / 14:31
1
answer

How to open a local webview cshtml in Xamarin Forms

I have a project in Asp net mvc and another in Xamarin Forms, I need to call in my Xamarin Forms project a WebView Local but the page is like cshtml (asp net)     
asked by 01.05.2018 / 23:27
1
answer

Call method of C # in javascript

I created a method that calls data from a database in C #. How can I call this method in JavaScript? Follow the code [WebMethod] public copa recuperaDados(int cAno) { var con = ConfigurationManager.ConnectionStrings["Data So...
asked by 19.05.2018 / 03:05