Questions tagged as 'c#'

2
answers

How to protect access to pages in MVC?

I have an application in MVC which has several pages (Views). The homepage is an authentication, which requires username and password. What I need is to protect all the pages (cshtml) so that it is not possible to access without going through...
asked by 20.10.2017 / 19:43
1
answer

I am having trouble verifying a field inserted into a table in a SQL database with a parameter

In the part of else where it says //Si tiene registros vamos a comparar el parámetro con el campo rfc I have doubts if if the comparison is made like this, the query if it brings me the data well, and the rfc that I try to enter is...
asked by 31.10.2017 / 23:39
0
answers

Browse the server directory from the web application to get the directory path

I am working on an intranet website, this does not have communication with the internet, so security problems should not exist. The point is that I require that when the user is in a form when entering an option in which he will request the path...
asked by 03.11.2017 / 16:45
0
answers

Connect with AWS from C # winform

I have an Application written in C# winform and the database ( SQLSERVER EXPRESS ) is in AWS (Amazon Web Services). I'm using a connection string like this: namespace Datos { public class Configuracion { static p...
asked by 30.10.2017 / 14:39
0
answers

How to use NPOI SXSSFWorkbook to export large xlsx

I have to export to a client in Excel 2007 (xlsx) a BBDD table of 500,000+ records through web access. Using NPOI or Epplus everything works fine until the table is very large and an Out of Memory is obtained. (ASP.NET-C # -VS2015)...
asked by 30.10.2017 / 13:32
0
answers

error in excel data from a csv with epplus

I have a csv file that has as one of its data 829/10/17 and using epplus to convert to excel it changes to this data -390883 although I force the column to type text, and probe also in perzonalidad and general and keep doing it, could you help m...
asked by 31.10.2017 / 05:38
0
answers

Separacion between the points of the axes

I have an application to show points of a table of values (x, y) in a polilinea , for this I use a canvas and a pointcollection My question is if I can make the separation between the points bigger I explain myself with...
asked by 28.10.2017 / 23:07
1
answer

C # Upload numbers in NumericUpDown and take out a List in a TextBox

I have a NumericUpDown and I need that every time I change the value, I show in a textbox a List that I already have predefined. I have this code in the numericUpDownClients_ValueChanged, but I get exception from System.ArgumentOutOfRangeExcep...
asked by 27.10.2017 / 17:37
1
answer

select from 2 combobox and show data in textbox

I'm working on an application and getting stuck on something I do not know how to do it. What I want to do is the following but with Entity Framework without using Ado . public void seleccionar_med() { SqlConnection con1 = new...
asked by 27.10.2017 / 11:22
1
answer

Adjust Panels Automatically

Good afternoon, this day my question is a bit simple but I do not know how to solve it, I am creating a% main windows forms , in which I have two panel , and which I need to adjust automatically to the resolution of my screen without havin...
asked by 09.11.2017 / 19:17