Questions tagged as 'c#'

1
answer

Repeated name in c #

I have this code, what I want is that you can not repeat the name and surname, for example if a user joins Juan Perez that later can not enter another bet with the name Juan Perez, what I did is wrong but it seems to me that the hand is coming a...
asked by 01.07.2017 / 23:30
1
answer

Open .txt file as bytes in C # [closed]

My class has to open a .txt file which contains some characters in ASCII, when opening it, this file must be stored in a byte [], in order to extract some specific locations from the document and to be able to modify it     
asked by 28.06.2017 / 21:10
2
answers

Error sending data by AJAX to Method in ASP.NET

Hello friends, I'm working with ASP.NET / C # and I'm trying to pass a parameter through AJAX ... but I get this error, I recently published a very similar question, where I did the same but from a ActionLink but as I am now passing the...
asked by 21.12.2017 / 17:04
1
answer

Abstract Data Types (TAD) doubt

Recently we were applying an example with a stack algorithm where the last element that is added is the first one that comes out. Having done this, we were asked to remain encapsulated and, by the way we did it, the problem arose that when we...
asked by 29.05.2017 / 06:12
2
answers

How to get only some Columns DataTable

Good morning, I have this Web Service that provides me with all the data of a table and all the columns, how do I select only some Columns and not all? [WebMethod] public DataTable consultaIndividualSUCIS(int tipoCodigoEntidad, int estadoA...
asked by 26.05.2017 / 16:31
2
answers

Separate a string / string using a delimiter in c #

My question is basically how I can separate a string using a delimiter. In my case what I did was split it using a split, let's say the chain will contain the following: ADELIMITADORB But what I get by separating it is DELIMITADORB w...
asked by 10.05.2017 / 13:15
1
answer

How to custom format a String C #?

Having a string like this: String texto = "123456890"; How can I make the screen output look like this: (123)4567890     
asked by 15.04.2017 / 21:40
2
answers

how to show windows previous to MainWindow the first time the application is opened in WPF c #

I am developing a program in WPF c # where I need to show terms and conditions as well as register user data the first time this opens the app after installing MainWindow is the main window but I have not found a way to determine if it is the...
asked by 14.04.2017 / 08:44
1
answer

Pass List from View to a Controller

I have a view where data is displayed in which data can be entered (Notes) @model IList<Proyecto01.Models.Nota> @{ ViewBag.Title = "Notas"; } <h2 class="text-center"> Notas</h2> @using (Html.BeginForm("ActualizarNotas",...
asked by 15.04.2017 / 08:16
1
answer

The resource is not found in c #

I have the following program that shows JSON data. Code of Controller : using MVCCuartoDia2.Models; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace MVCCuartoDia2.Co...
asked by 04.05.2017 / 05:02