Questions tagged as 'c#'

0
answers

Function JavaScript does not work after the second call (and subsequent)

I have a very strange problem. I am developing a functionality in C # with MVC 3. When clicking on a tab, the controller returns a partial view and in turn this view calls a javascript file that draws a graph. The first time the system is seen,...
asked by 19.10.2018 / 15:26
0
answers

Does not grant me permissions for GPS XAMARIN ANDROID

hi people, my problem is that using the Geolocator in xamarin android does not let me get the coordinates of the device. [Activity(Label = "@string/app_name", Theme = "@style/AppTheme.NoActionBar", MainLauncher = true)] public class MainActiv...
asked by 24.10.2018 / 03:11
1
answer

Show users hostpot mikrotik

Hi, I'm doing a program in c # to help me create the hostpot user in mikrotik but I do not know how to fill a datagrid with the information that is in the router could you help me?     
asked by 28.10.2018 / 22:47
2
answers

From HTML to PDF in MVC 5 ASP.NET

Boys I have a view like this that is supposed to be an invoice for clients, it already prints but I need the user to download a pdf and that has been impossible probe on the client side with several js libraries like jsPDF, but this option...
asked by 18.10.2018 / 22:03
1
answer

Method that in visual basic does not take parameters as it is done in C #

I'm doing the following code conversion from vb .net to c # Thread hilo = new Thread(AddressOf ConcatenarArchivosHilos); hilos.Add(hilo); where ConcatenarArchivosHilos has a parameter of an integer array Private Sub Concatenar...
asked by 18.10.2018 / 19:12
1
answer

create database in microsoft azure from code c #

I'm trying to create a database with a program written in c #. I created a free account and created a resource of azure cosmos db. The connection to the cosmos account db is done correctly but at the time of creating the database I do not get an...
asked by 18.10.2018 / 07:03
1
answer

Receive an image by JSON

I have the following problem; I have a Rest service with ASP.Net MVC and I am currently receiving the image by base64 and it ends up giving me a km json to save, so I wanted to know how to receive the binary information (as much as possible I wo...
asked by 18.10.2018 / 00:23
1
answer

ASP.NET Core injecting DbContext

I get this error in the "catch" when injecting data: Can not access to disposed object. A common cause of this error is disposing a context that was resolved from dependency injection and then later trying to use the same context instance elsewh...
asked by 22.10.2018 / 20:01
0
answers

Problem when trying Update nodes of the following SOAP XML C # file

This is the XML SOAP to be modified, the nodes that you want to modify are "Code", "TrNumber" are inside the Element "SECInformation" <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cis="http://www.i2.com/c...
asked by 16.10.2018 / 21:05
1
answer

Return Data and View in JsonResult

I put them in context, I'm working with C # MVC architecture, when making POST of a Create, defined as follows: [HttpPost] public JsonResult Create(List<Modelo> registros) {... I must return a JsonResult() in which I must re...
asked by 16.10.2018 / 19:27