Questions tagged as '.net'

1
answer

Transfer date value from Form1 to class c # windows form .net [closed]

I'm working with windows form .net c # but I do not have much practice and would like some help ... I have a calendar component in a form1 and after running the application, a date is selected which is stored in a var.Até alright. I created a...
asked by 13.03.2015 / 20:49
1
answer

Thread starts but there is no reaction

I have a small problem that when I start a thread with a normal function the thread tasks are fully completed and the thread is over! But I need to start a thread which causes a WebBrowser to load the page without the window loc...
asked by 31.01.2015 / 00:32
1
answer

Associating ListT with WebClient

How to associate a class List with a WebClient , and when it finishes it calls another WebClient in a index List< WebClient > clients; void BaixarTudo(List< string > urls){ for(int i=0;i < urls.Count; i++){ cl...
asked by 17.01.2015 / 23:17
1
answer

Create partial method in C #

How can I create a method similar to a class that is partial? For example: It has method $InitializeComponent() that is of the class of a form. I want to increment this function, without touching the original (create a proxy )....
asked by 17.12.2014 / 15:24
1
answer

How to open a file that is inside the solution with Process.Start

I added my solution in C # to a folder called "files" inside that folder will be placed some standard documents that can be analyzed at the time of registering some projects. I have a combobox in the form for the person to choose the f...
asked by 29.12.2014 / 19:10
1
answer

how to get an id of a model in a view through a link?

I have a link that calls a function JS (POPUP), in this popup I have a registration form, to validate all the parameters of my form, I need to obtain the ID of the My Model that is in the view of the Link I am not able to obtain this ID for inse...
asked by 23.12.2014 / 14:31
2
answers

How to insert into tables with many-to-many relationship?

I have a question about how I'm going to do the insert with relationship n:n My tables are: Recibo Analise Analise_Recibo (recibo_id, analise_id)     
asked by 20.12.2014 / 12:54
2
answers

Batch deletion using Linq

I have a table, which is used in my Model.edmx , with the following fields: ID ID_PROJETO ID_ITEM VALOR How to convert the SQL below into a Linq expression? DELETE FROM TB_RECEITA WHERE ID_PROJETO = 100 AND ID_ITEM = 5     
asked by 05.01.2015 / 21:03
2
answers

Picking Location from a POST

I'm using the HttpRequestHeader method to make requests ( GET and POST ), however I'm getting the Location parameter from the response of a POST and I'm not able to evolve. You have an example of my request belo...
asked by 25.02.2015 / 21:46
1
answer

Conversion of string to datetime with specific format

I have string in the following format: 16Mar2009 (mon) , but I am not able to convert to datetime . string format = "dMMMyyyy(dd)"; DateTime dt = DateTime.ParseExact("16Mar2009(mon)", format,CultureInfo.InvariantCulture); Re...
asked by 20.01.2015 / 22:27