Questions tagged as 'c#'

1
answer

Doubts about Error in javaScript,

I am currently working with entity framework and ajax, I have a method in ajax that returns a list that I can load in a table and when I want to choose some item in particular I click on the row and this data loads them in form, general I charge...
asked by 16.11.2018 / 16:12
1
answer

Migrate MSSOAP.SoapClient30 from VB to c #

The issue is that I'm migrating a project from VBA to C #, and along the way I found: Set SoapClient = CreateObject("MSSOAP.SoapClient30") 'Objeto Web Service Soap SoapClient.ClientProperty("ServerHTTPRequest") = True so I started t...
asked by 30.10.2018 / 16:45
1
answer

Cancel button of a Login C # form

I have a problem with this event code click on the cancel button of a login form. private void btnCancelar_Click(object sender, EventArgs e) { if (MessageBox.Show(@"Esta seguro que desea salir del sistema?", @"Atención",...
asked by 12.10.2018 / 20:03
2
answers

How to serialize data from a datagrid to JSON with C #?

I'm trying to get all the rows of a datagrid in c # in JSON format. With the following code I already get the correct JSON format but I do not get all the data from the datagrid. Just send me the data from the last row of the datagrid, taking...
asked by 08.11.2018 / 19:29
2
answers

Editor type DateTime does not show the date but in the input if the value appears

I am developing an application in ASP.Net MVC5 that contains a pattern of workers, among the data that must be captured is the date. Now the problem is that in my Edit view if I load the value that comes from the model in the input, however in d...
asked by 14.11.2018 / 00:27
3
answers

Hide and Show div with Google Map

I have a div on my ASP.NET page that contains a Google Map, and I need to show it and hide it but it does not work for me. This is the code divided by lengaujes : Javascript: function ShowMap() { var mapa = document.getElemen...
asked by 08.09.2016 / 21:30
3
answers

how to convert string date to datetime

I have a date in the following format 10/16/2018 or this is in MM / DD / YYYY format so it comes as a parameter, but this date is as string and I need to convert it to a datetime, try the following: string fecha = "10/16/2018"; DateTime dt = D...
asked by 16.10.2018 / 16:02
1
answer

Sending data to an Api

I have two methods of type Post But what I do not know is how to differentiate one method from the other in the Post type request. [HttpPost] public ExpedienteDto Post(ExpedienteDto dto) { return ProcesosService.CrearExpedient...
asked by 25.09.2018 / 16:43
3
answers

Error in my fix in C #

I have a program to generate pseudo-random numbers by means of the mixed congruencial method, but it throws me an error in one of the code lines. static void Main(string[] args) { double c, a, m, sem, res = 0, lim = 0, conta = 0,...
asked by 23.09.2018 / 17:06
1
answer

Show data Binding WPF C #

Good day, I have had problems to show the data in a grid using wpf the code does not throw me error and reviewing the step by step I see that the methods take the values registered in the DB but do not take them to the grid. I share code: 1....
asked by 05.09.2018 / 16:42