Questions tagged as 'c#'

2
answers

Prevent the repetition of numbers in a matrix [duplicated]

I have an algorithm where I fill a matrix of 10 x 10. I wish that at the time of printing the matrix, no number is repeated. This is my code: int posi = 0, posj = 0, mayor = 0;//declaracion de variables para la posicion y el numero mayor...
asked by 10.08.2017 / 12:13
1
answer

Convert DIV Html5 to Image or PDF C # / Jquery ASP.Net

Hello friends, how can I convert a div to an img in C # / ASP.Net? I want to capture Google maps from an APP in C # ASP.Net I tried with Windows Forms CopyScreen worse already published in IIS tells me Not Valid Controller Do you have a...
asked by 27.06.2017 / 20:53
1
answer

I need to implement some form of the user activating the gps, Xamarin CrossPlatform PCL

I have read that for security reasons this action can not be carried out even though there are applications that do so, such as Google Maps, in which if one enters the application with the gps deactivated, this application shows an alert with th...
asked by 30.07.2017 / 10:40
1
answer

Get rows that have a date greater or less than a certain date

I have an application in which I want to select from 2 timePickers the minor and major date, and then make a select * from using the dates as conditions. I have this: var select = "SELECT * from inventario where ifechaCompra > "+diarioFe...
asked by 28.07.2017 / 20:01
3
answers

How to upload an excel and show your data In C # (MVC)?

I researched on the web how to upload an excel file from: <input type="file"/> After loading it into a list and passing it to a list (I do not care) I just want to know how I can read it from the file loaded in the input. I can not fi...
asked by 13.06.2017 / 00:24
1
answer

Validate that a row is not repeated within a DataTable

Good day I am developing an application where I need to show in a DataGriView the result of a query to know which users have permissions to different documents , when I charge the DataGrid shows me in screen the permissions of eac...
asked by 09.06.2017 / 13:16
3
answers

How would this vb code be in c #

I need to show data that is in a database. I have something similar done in vb.net but now I have to do it in c # For i = 0 To dt.Rows.Count - 1 Dim codigo As Integer = dt.Rows(i).Item("CodDepartamento") html.Append("...
asked by 09.06.2017 / 06:08
1
answer

Basic C # query

It is a number counter, if one enters OK should exit and show the sum of the numbers entered. The counter works fine but when I enter OK instead of leaving the while the application crashea. static void Main(string[] args)...
asked by 04.06.2017 / 14:13
2
answers

Place current date in a TextBox in C #

I need the current date to be loaded in the TextBox ; I'm doing it with the following code but when I run it, it does not load any date: <td> <label for="Fecha">Fecha:</label> </td> <td>...
asked by 11.06.2017 / 19:24
1
answer

Find out length of document with ITextSharp C #

I wanted to know if there is a way to know how high the writing is in a pdf generated by means of class ItextSharp.text.Document ; For example, when generating a pdf document with ItextSharp, I know that I only have to execute the do...
asked by 01.06.2017 / 17:54