Questions tagged as 'c#'

1
answer

Insert data from a DataGridView to SQL in c #, Visual Studio

I am making an application that records the daily information of what was done on a farm during the day. The grid shows something like that. Where I have to enter information from the data grid to the database. But the size of the rows va...
asked by 19.09.2018 / 19:41
0
answers

WCF Service Return erroneous XML

I created a Post WCF service in C # that signs an xml document, all right, but when I invoke my service from the postman client, it returns me with special and incorrect characters. This is my services: IService1: [ServiceContract]...
asked by 07.09.2018 / 23:32
0
answers

How can I get the user to download an Excel file that is in a virtual path?

This is what I have tried, it finds it and everything but it is not downloaded anywhere protected void btn_Exc_Click(object sender, EventArgs e) { System.Web.HttpResponse response = System.Web.HttpContext.Current.Response;...
asked by 07.09.2018 / 19:00
0
answers

How to read mail using SMTP from C #?

I have to read an inbox (Inbox Outlook Microsoft Exchange) of an email, I have the email account, the password and by the mail server I have the host (the email is configured as SMTP NOT POP3 or IMAP ) and the port. This is my code private...
asked by 05.09.2018 / 18:47
2
answers

How can I calculate the percentage of notes in C #

class Alumnos{ static void Main(string [] args){ int CantRepro=0, CantApro=0, i=1; double promGrupo=0, PromAproba=0, PromDesapro=0, nota=0; string resp; Console.WriteLine("Desea introducir datos? S/N");...
asked by 05.09.2018 / 20:16
1
answer

How to calculate distance between two points using the google api with C # [closed]

I hope you can guide me, I am building a site where I want to consume the Google Maps API with C #, I want to know if it is possible to calculate the distance between two points by means of some function offered by the API or I have to calculate...
asked by 05.09.2018 / 18:53
2
answers

Modify DataContext of a View from ViewModel WPF

Good afternoon, classmates. I would like to know how I can modify the DataContext of a view with its ViewModel, from another ViewModel or from the same ViewModel. public partial class Window2 : UserControl { public Window2() {...
asked by 05.09.2018 / 17:09
2
answers

How to get a photo taken from the Cam to keep it with MVC

I have a code that takes the picture activating the camera of the pc, encrypts it by passing it to base64: <video id="video"></video> <br> <button id="boton">Tomar foto</button> <p id="estado"&g...
asked by 05.09.2018 / 18:08
2
answers

How to hide an input element when selecting a radiobutton in mvc asp.net?

I am new to this working environment using aspnet and I would like to know if there is a way to show an input when selecting an item on the radio button without trying to use javascript.    Method created in the controller called tg04Personas...
asked by 05.09.2018 / 17:40
0
answers

Parser Error - An error occurred during the parsing of a resource required to service this request

I am developing a web system in ASP.NET using Visual Studio 2017 , I use a WebService in the part of Backend to make queries to the database, the problem is that when publishing the project in the server throws me the...
asked by 05.09.2018 / 14:09