Questions tagged as 'c#'

1
answer

save variable without being "cleaned" when doing return view C #

I have a small problem, it turns out that I am doing two filters in my project (One by date and the other by company). The filter by date works perfect I change it by date and it filters well but that date that I send it I want it to be stored i...
asked by 17.07.2018 / 18:33
1
answer

How to select elements within a csv in C #?

My problem is this, I have a csv with two lines separated at the end by; and each word separated by, such that: prueba.csv gato,casa,http,antonio; perro,abanico,https,libro; Now I want to select the first row and put in variables each...
asked by 17.07.2018 / 15:54
1
answer

Get values of a string in c #

I'm trying to get the values of a string that contains a url with a QueryString . This is an example of the URL: string url = "http://example.com?id=gdjh48vnnnvwsid1dkif84ndn?id2=cjodfnuvbvmf47747"; How do you see it is a...
asked by 20.07.2016 / 09:41
1
answer

Properly display Panel or custom form when activating OnClick event

Background: I am generating a Windows Form application whose main functionality is to consult information through a web service. The design of the (controls) form consists of: (1) TextBox (1) Button Due to the latency of the r...
asked by 19.07.2016 / 16:52
3
answers

Convert sql to Linq

Select Curso.* from Curso left join AlumnoCurso on Curso.id = AlumnoCurso.Curso_id where AlumnoCurso.Curso_id is null Friends I have this query but I have not managed to know how to pass it to linq or a lambda expression Please help me? At...
asked by 26.07.2016 / 18:01
1
answer

concatenate the same column in consultation?

First of all I am sorry for knowing how to use all the available tools .. I will try to teach them as I can .. I have this query: Nombre Clase Raza Contexto Lazaro Burlón Humano Lazaro es un ... Lazaro Barbaro...
asked by 02.07.2018 / 22:06
1
answer

declare list list as object attribute c #

I have the following object: namespace MODELO{ [Table("Check_lists_PVR")] public class Check_lists_PVR{ [Key] private Int64 NroCL { get; set; } public DateTime Fecha { get; set; } public string Turno { g...
asked by 04.07.2018 / 01:29
1
answer

SQL query in EntityFramework

I want to do manual sql queries but using the .net entity framework. ex: select from database where id == 20 ; and no: Item algo = new Item(); algo.name = algo.lastName = algo.Add(); understand me ????     
asked by 20.06.2018 / 20:58
1
answer

How to separate a list by columns

My MainPage.xaml <ContentPage.Padding> <OnPlatform x:TypeArguments="Thickness" iOS=" 0,0,0,0" Android="0,0,0,0" WinPhone="12,10,12,10"></OnPlatform> </ContentPage.Pa...
asked by 21.06.2018 / 04:48
2
answers

How to send information from a UserControl to a JSON file using Json.net? in C # - WindowsForms

I have a UserControl that I created dynamically from the main form class of the same project. I need to send all the information (Name, Tags, Positions etc) of that UserControl that I am creating dynamically to a JSON file. I'm using the JSON.NE...
asked by 21.06.2018 / 09:34