Questions tagged as 'c#'

1
answer

Help! difference between form action and $ http.post ()

Good morning, I have a form in which the values I capture in the need to send them to a controller. This mvc asp.net driver returns a new view as an answer. My question is, using $ http.post (), can I get that view that the controller returns...
asked by 12.11.2018 / 21:11
2
answers

Select row of a gridview without buttons, checkbox

Hi, I have the following gridview that is loaded from a select, with some fields in white, I wanted to know if there is any way that when I select a record of that table I load the corresponding data in the textbox? For some reason, the select i...
asked by 01.05.2018 / 02:54
2
answers

Showing the data that brings the stored procedure to an ASP.NET MVC 5 view

I'm trying to show what my stored procedure brings and I want to send it to view: This is how I sent it: var Fechainicio = new SqlParameter { ParameterName = "inicio" , Value = FechaDesde };...
asked by 24.10.2018 / 13:47
2
answers

How to select an internal file randomly from a folder and then save it? C # [closed]

Hi, I'm here I'm a new user in Stack, I've arrived here because of this questionnaire I have, I'm doing a project in C # Personal in regard to this program I want to randomly select a file from an internal folder of the project (Any type of file...
asked by 10.09.2018 / 14:51
3
answers

Convert a hexadecimal string to a byte and vice versa

Hi, I want to know how to go from a hexadecimal that is a string to a byte. For example "0x0A" I want to get a 10. How do I do it? I've been trying for a while with the Convert method, implicit conversions, etc. But the user enters 0x0A and n...
asked by 14.02.2018 / 10:41
1
answer

IEnumerable with C #

I would like to know how to correct the following error:     
asked by 09.02.2018 / 04:57
1
answer

Close form in c #

Open form button: frmCatalogos formulario = new frmCatalogos(); this.Hide(); formulario.ShowDialog(); this.Show(); All right up there. The problem arises when I click on a button in the following form. performs all...
asked by 29.01.2018 / 03:45
3
answers

Subtract 3 days from sql dates with c # [duplicate]

public List<DateTime> fechas3() { List<DateTime> list = new List<DateTime>(); List<DateTime> fec = new List<DateTime>(); SqlConnection cone = new SqlConnection(connect); cone...
asked by 07.12.2016 / 19:32
1
answer

How is the for each in C # used? [closed]

I am studying OOP in the faculty and I do not finish understanding objects, and now I am having problems with the for each, I understand that it is to go through objects, but I do not understand the function well. If you could recommend some boo...
asked by 29.10.2018 / 15:57
1
answer

web notification

Good I would like to consult you although it is not a problem if not a consultation if you can make notification on the web as well as the whatsapp application that when you speak it comes out at the top a notification that I speak to you, I wou...
asked by 03.01.2018 / 05:28