Questions tagged as 'c#'

1
answer

c # in console, nested While, exit questions yes / no in sub-menus and limits

Well, my problem lies in the questions of the submenus, since when you ask the questions, and return to the menu responding negatively, when I select an option that is not in the range in the main menu, it executes a text instruction in infinite...
asked by 19.07.2017 / 00:54
0
answers

Error creating Windows Service with C #

I am new to the use of visual studio, I am trying to create a windows service from this tutorial tutorial to create windows service but in TestService.cs I get the error Object reference not established as an instance of an object , below I l...
asked by 21.07.2017 / 18:47
1
answer

Bring variable to another form

I'm trying to take a variable ID to another form in TXbox, but when executing txbox, it's blank Cedula = Convert.ToString(reader["Cedula"]); Intent intent = new Intent(this.Activity, typeof(PagPpal)); intent.PutExtra(PagPpal.MTxtCedula, Cedula...
asked by 19.07.2017 / 14:07
1
answer

Responds to redirected user. OAuth2 protocol

In the OAuth2 protocol, once the user has granted permission to an application (Windows Forms) and is redirected to the url link , how can you get the code SERVER_GENERATED_AUTHORIZATION_CODE in a development made in c #? The operation of th...
asked by 07.08.2017 / 11:33
1
answer

Error retrieving record from the DB in the Data layer for use in an ActionResult within the ASP Controller. Net MVC 5

I am running a billing system in ASP .Net MVC with 3 layers. I just need to record the detail of the sale, because the sale already inserts me. In the case of the detail I extract all the fields that are required to insert the detail, except t...
asked by 25.07.2017 / 04:33
1
answer

How to check if a decimal is less than or equal to an integer?

I have the following code: public bool CheckArena() { if (Convert.ToDecimal(porcentajeArena.Text) >= 60 && Convert.ToDecimal(porcentajeArena.Text) <= 71) { error0.Text = ""; return...
asked by 23.07.2017 / 18:51
1
answer

ReportViewer problem with time format when exporting to Excel

I schedule with Asp. Net and C #. I have several reports in which columns of a Tablix with information about times appear. My problem is that when exporting to Excel this report does not let me operate with these times. If I have a Tablix...
asked by 18.07.2017 / 07:11
1
answer

How to pass a string of C # (aspx.cs) to a javascript fix for google maps?

I have a static variable in my webform class, which are coordinates for a Google map public static string Query = "19.475 -91.97500000 19.475 -91.98333333 19.4833333 -91.98333333 19.4833333 -92.01666666 19.5 -92.01666666 19.5 -92.025 19.533333...
asked by 17.07.2017 / 23:33
0
answers

Edit PDF with ITextSharp C #

I have a document already made (the template so to speak), that document contains a table to which I have to add a row and change the date that is written in the document. Once edited that document, I must "copy" it, change the name and save it...
asked by 29.07.2017 / 04:56
1
answer

Does PageCollectionView work differently in WPF with the ListCollectionView?

When I pass the ObservableCollection and I order it with Linq it does not work but if I pass it directly it works. In SilverLigth it worked passing the ordered list. Why is this? Silverlight code ListaAOrdenar = new ObservableColle...
asked by 28.07.2017 / 19:53