Questions tagged as 'c#'

1
answer

How to add more than one string in a List

I have a customer registration system and am trying to add products to registered customers. For the list of the cadastre I have the following: public class Cliente { public string Nome { get; set; } public string CPF { get; set; }...
asked by 03.11.2014 / 21:59
1
answer

Difference between repeater_itemdatabound and repeater_itemcommand

What is the applicability and difference between repeater_itemdatabound and repeater_itemcommand in a repeater?     
asked by 18.11.2014 / 12:12
1
answer

How to end my WPF application and initialize it again?

I have in my application a database configuration screen, in which once configured I have to close the system and then open again to take effect the changes made. How can I do this in an automatic way?     
asked by 02.10.2014 / 21:36
3
answers

Load dynamically from the database and mount a treeview in cshtml I'm not getting

is as follows. I'm not getting the satisfactory results in assembling a tree using checkbox like in a treeview. Well, when I put in the data it works fine. But when I bring the DB data, that's complicated, that is, it does not work. The logic is...
asked by 10.09.2014 / 19:52
1
answer

Entity FrameWork Objects

I'm having a question with Entity Framework I have a situation in which I want to implement a structure in the database of a chart of accounts, for example: the current active account ID 1.1 is the parent of the account box 1.1.1, is my busin...
asked by 12.04.2016 / 21:25
1
answer

Asp.NET + PagSeguro

Good morning, I arrived the moment you need to add the payment methods. and I want it for Pagseguro. What's the first step in doing this? Where do I have to implement the payroll classes in my project? Should I separate into a new project? I fou...
asked by 15.04.2016 / 17:28
1
answer

Doubt with WebApi data insertion

I'm using Postman: Error:"Object reference not set to an instance of an object." I have the Controller Code: //http://localhost:1608/api/ApiGuiaCidade/cadastrar/cliente //"Referência de objeto não definida para uma instância de um...
asked by 10.11.2015 / 18:25
1
answer

Radiobuttonlist does not accept on if the SelectedIndx [closed]

I have this declared RadioList: <label>Aprovar</label> <asp:RadioButtonList ID="rblAprovar" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal"> <asp:ListItem Text="&nbsp;Sim&...
asked by 26.01.2015 / 16:06
2
answers

Updating object value of a Form by a thread

I need 2 labels in my form to be updated every 1 second, so I made a thread in load of Form : Thread threadUpdate = new Thread(new ThreadStart(UpdateState)); threadUpdate.Start(); And my UpdateState method is found as fo...
asked by 15.07.2014 / 17:04
1
answer

How to insert values inside a key using List and JSON

I'm trying to do something that gives me output like this: [ { "Nome": "João", "Comprou": [ "Carro": "Sedan", "Preco": "12000", "Moto": "Honda", "Preco": "8000"...
asked by 30.10.2014 / 21:04