Questions tagged as 'c#'

1
answer

Create a command-only class

I just created a class of commands, so long as I did, I pulled the command class to the main class but I'm having an error Command class: public bool OnCommand(string[] args) { if (args.Length > 1) { string a; if...
asked by 27.08.2017 / 22:24
1
answer

How to call a controller method using Ajax using MVC5 in visual studio?

Hello, I'm new in development, and I'm developing a data entry whereby the user type the system to search in the Api of the mail and the address related to the zip informed, but I've seen in many articles on the internet, but not I'm getting succ...
asked by 06.09.2017 / 23:42
1
answer

My application does not give an error, but nothing appears on the screen (xamarin)

Developing and learning xamarin. I took an example of Macoratti and decided to implement, because it is consumption of REST with xamarin. I did everything as it is on the author's website and when I squeeze, nothing appears on my smartphone (sam...
asked by 29.08.2017 / 00:37
1
answer

Deployment only works with samsung j5 smartphone plugged into the computer

I can only do deployment when my cel is plugged into my note. If I use the default ( VisualStudio_android-23_arm_phone(Android 6.0 - API23) ), it does not work. Build successfully, but deployment fails. I do not know why. I have not tested...
asked by 29.08.2017 / 14:09
0
answers

Mounting report with ReportViewer in C #

I have two database tables that are the Purchase and Purchase Items. How can I make a report using ReportViewer .rdlc that meets the following pattern: Dados da Compra Dados itens da Compra Dados itens da Compra Dados da Co...
asked by 29.08.2017 / 15:40
1
answer

Execute the submit of a form in the click event of an element

What is the best way to do a POST at the click of a button on an ASP.NET MVC form.    View Create: @model Projeto.WebERP.EntityFramework.Entities.Pais @{ ViewBag.Title = "Create"; } <div id="bannerMessage"> </div> | @Ht...
asked by 29.08.2017 / 02:34
0
answers

How to create composite key and ensure the same property in 2 model

I have 3 models public class UnidadeNegocio { public int Id { get; set; } public string Nome { get; set; } } public class Cliente { public int Id { get; set; } public int UnidadeNegocioId { get; set; } public string Nome {...
asked by 10.09.2017 / 00:42
1
answer

Login with Facebook on Xamarin Forms

I'm developing an application using Xamarin.Forms and need to use Facebook's authentication system. what happens is that when I debug it I get an error message saying:    Unable to load URL: The domain for this URL is not included   in the ap...
asked by 09.09.2017 / 18:43
1
answer

How to get the Value result of Div divValor. result [2] in the mvc controller?

$(document).ready(function(){ $("#btnSend").click(function(){ $.ajax({ url:'@Url.Action("VerificaCep","ConsultaCep")', type: "GET", contentType:"application/json",...
asked by 09.09.2017 / 23:11
1
answer

Using another path to pull files from a folder outside DirectoryInfo

My project is running perfectly, but I would like to replace this path DirectoryInfo with another one that pulls itself straight from the folder without needing to use my directory. Code: public List<Arquivos> GetArquivos() {...
asked by 26.08.2017 / 00:53