Questions tagged as 'c#'

1
answer

As a hidden textbox when pressing a radio button?

Hi, I want to hide the textbox when I select the radio button called administrative. And when you select a driver, show the textboxs ..     
asked by 06.11.2018 / 15:50
1
answer

separates string to put it in a datagrid

hello could you help me to separate that string that I have from a list to separate it and put where it says name and password in columns of a datagrid I have already tried with slipt but I have not managed it foreach (string item in mk.Rea...
asked by 06.11.2018 / 02:41
1
answer

Index outside the limits of the matrix - C #

I have a problem with my code, I'm trying to make comparison of numbers within an array, only that it gives me an index error outside the limits of the array. I hope you can help me, I would thank you very much, I leave my code if ((array[0])...
asked by 06.11.2018 / 03:50
3
answers

Problem with validating URL with regular expressions in C #

I have a problem I have this regular expression: Regex Valida = new Regex(@"^(http|ftp|https|www)://([\w+?\.\w+])+([a-zA- Z0-9\~\!\@\#\$\%\^\&\*\(\)_\-\=\+\\/\?\.\:\;\'\,]*)?$", RegexOptions.IgnoreCase); The problem is that it does not...
asked by 13.09.2018 / 17:23
1
answer

Image from imageList to Picturebox comes out blurred (c #)

I'm trying to insert an image from an ImageList to a PictureBox, but when I load the image, it goes very blurry, the code is this: P3.BackgroundImage = imageList1.Images [0]; It should come out clear.     
asked by 22.09.2018 / 04:34
1
answer

Pass data dynamically from one DataGridView to another DataGridView

I want to pass the data from a datagridview1 to another datagridview2 by pressing a button, but I want all the selected data to be passed. Until now I only get the records to go through one by one, that is a row. My problem is I can not get all...
asked by 19.09.2018 / 03:10
1
answer

Inconsistency in reading a flat file ("?") C #

I am reading a flat UTF-8 source code file and I read it with UTF-8, so far everything works fine, but I have a record that for reasons I can not find yet, it brings me a question mark when I register it in the BD, but I do all the follow-up and...
asked by 03.09.2018 / 16:08
1
answer

How to fill an Html.DropdownListFor ()?

I need to fill Html.DropdownListFor() in my view through razor, so far I have the following, two classes where I get the data that I need to recover from my db plus the controller by GET to recover the data and send it to the seen...
asked by 03.09.2018 / 14:23
1
answer

upload a flat file (excel) and using asp.net c # a web form load it and save the data in SQL

I would like to know how I could upload a flat file (excel) and using asp.net c # a web form to load it and save the data in sql, here I upload the file, I keep it in a local folder and now what I need is to save the content of the excel file in...
asked by 03.09.2018 / 16:54
1
answer

Problem to open a default route with openFileDialog

Good morning. I'm trying to open a directory in a default route in the following way: String directorio = Environment.CurrentDirectory + "\..\Pruebas"; openFileDialog1.InitialDirectory = directorio; openFileDialog1.ShowDialog(); but it do...
asked by 20.08.2018 / 17:08