Questions tagged as 'c#'

1
answer

How to deserialize attributes of XML elements with C #? [duplicate]

Well I asked this question once but I did not have an answer, so I'll ask again. I've tried some methods I saw there that said that worked on other questions, but none of them. I need to read this XML: link And extract the attribute...
asked by 21.06.2015 / 17:31
1
answer

Why button type = submit is not submitting?

I'm creating a modal form, when I try to submit it, it does not submit. My VIEW: @model GerenciadorDeAtividades.Dominio.AtividadeDominio @{ Layout = null; ViewBag.Title = "Alterar Status da Atividade"; } <div class="modal-dialo...
asked by 24.06.2015 / 14:35
1
answer

doubts when doing nhibernate mapping

I have the following scenario: public class ExemploDTO { public virtual int Id { get; set; } public virtual List<PessoaDTO> Cliente { get; set; } public virtual ServicoDTO Servico { get; set; } } How would map this class u...
asked by 18.02.2015 / 19:33
4
answers

How to copy a datagrid to an arraylist

I have a button and command and when I click on it, I need to copy all information from my datagrid to an Arraylist. For example: The datagrid has 4 columns and 10 lines all have information, now comes my dilemma, when clicking on the baton I ne...
asked by 19.03.2015 / 15:59
1
answer

WPF - How to create a mechanism to make the application available for testing for x days?

Good morning I am creating an application in WCF and would like help or guidance at the following point: I need to make the app available for anyone to download and test it, type a test for 30 days and then restrict access. How can I creat...
asked by 04.03.2015 / 16:00
3
answers

Get the name textview in loop repeat

How can I get the textbox inside a For: I have a For that runs 20 times and I have 20 textboxes on my screen, I would like to know how to get all textboxes containing name get the text and play in an array.     
asked by 05.02.2016 / 19:11
1
answer

Change operator + by - in refactored method

The code below is intended to make a move on an object on the Y axis of an object following the mouse (the code works), see that the code inside if and else if are the same as not and - operator - what would be the ways to refac...
asked by 02.02.2016 / 17:55
1
answer

Select Subqueries

My bank looks like this: cd_cliente | nr_ddd | nr_telefone 30 | 11 | 25622791 30 | 11 | 25622791 My select is like this: "SELECT * FROM tb_telefones WHERE nr_ddd="+ddd+" AND nr_telefone="+telefone+"";...
asked by 25.11.2014 / 14:12
2
answers

How to read and open files from a byte column in SQL Server?

My question is the continuation of this question: Link to another question I was able to transform my file into bytes and insert it inside a table in SQL Server, however now I want from within an application that I'm doing in C # I want to...
asked by 09.12.2014 / 14:03
3
answers

How to send dynamically created fields via JSON?

How to send via%% of% dynamically created% fields%, eg: The user types in a text field the quantity 4 and the function creates 8 input fields, or type 5 and the function creates 10 input fields, this function already works and is OK! This...
asked by 09.02.2016 / 11:55