Questions tagged as 'c#'

1
answer

The data is not displayed in the edit.cshtml view

Here is the code that I have made, but I can not make the data I want to edit appear, the data that is in the same table appears, but not the data that is in another table which is related to the main table, using the viewbag. Controller: p...
asked by 05.11.2018 / 20:14
1
answer

The input string does not have the correct format c #

This is a program to show several products through the arrangement of objects. What happens is that when I am adding products with their respective attributes, I get an error saying "The input string does not have the correct format" pointing to...
asked by 04.11.2018 / 19:48
1
answer

Fill string in c #

Good day, I have a richTextBox with a character length of 260, now I want to distribute those 260 characters in 5 variables of type string leaving in each one 52 characters. Thanks for your help.     
asked by 23.11.2016 / 15:14
1
answer

C # How to get the word that follows a specific word? [closed]

I would like to know how to get the word that follows a specific word in a string, (without knowing what it is or how many words the string has) .Ej: string: "Eagles fly and dolphins swim", I want to get the word immediately after "the ones",...
asked by 18.03.2018 / 22:39
3
answers

Get the list that is contained between two Data

I have a Collection of n Number of Objects, in which a field is Boolean, as I could get all the objects that are between two objects that have the field in true: EJ: $scope.lista = [ {d1:false, d2:Hola0}, {d1:false, d2:Hola1}, {d1:...
asked by 10.03.2018 / 06:56
1
answer

How to enable a textbox in jquery? [closed]

What I need is for a textbox to be disabled and enabled until I write 4 numbers in a previous textbox. The textboxes are asp: Textbox. The truth is I have not tried it because I do not know how, and it occurs to me that it could be with jquery o...
asked by 07.04.2018 / 17:28
1
answer

Difference between string and String in C #? [duplicate]

Example (pay attention to the upper case and lower case): string s = "Hola mundo!"; String S = "Hola mundo!"; What is the correct use of each line? What are the differences? Basically I would like to know if there are differenc...
asked by 23.04.2017 / 04:25
1
answer

Validate numerical data and letters in c # by console (help) [closed]

static void Main(string[] args) { int datos; String op; String op2; do { Console.WriteLine("Bienvenidos"); Console.WriteLine("1. Tipo de triangulos"); Console.WriteLine("2. Generar numeros pares");...
asked by 13.11.2017 / 01:34
1
answer

Random number of 36 digits in C # [closed]

I want to get a number of 36 random digits in C #, use the Random but I could not make the number of digits only 36 Greetings and thanks     
asked by 20.03.2018 / 06:48
2
answers

Error deserializar JSON in .NET C # [closed]

Does anyone know what he's trying to say about the error he makes?     
asked by 25.05.2018 / 01:48