Questions tagged as 'c#'

1
answer

Error in Webservices Json C # "Unexpected character encountered while parsing value:. Path '', line 0, position 0. "

Hello, I'm getting an error in executing my code, in another application the same code works, I already changed the using , but it does not work. public String CriaPeca(String token, String ip, String autor, bool seguranca, Dictionary<...
asked by 09.11.2017 / 16:34
1
answer

Handling XML Files in C # - Library Tips [closed]

I need to manipulate an XML file in C #. This is the first time I'm going to do this, and I wanted some tips. My algorithm is basically this: Fill an XML from my system data (DB Data) Ex: I have an entity from which my example data com...
asked by 13.07.2017 / 16:25
1
answer

Is it correct to use List with ViewModel?

I have ViewModel below: public class Crm_AnaliseViewModel { public string TAG { get; set; } public int ATUALIZACAO { get; set; } public string RELATORIOS { get; set; } } Then in Controler did: public async Task...
asked by 14.07.2017 / 23:27
1
answer

Infinite Menu with recursive function

I would like to know how I can create a recursive interface. I have a set of menus, these menus are parents having children and so on, there being no maximum number of children. I would like to find a solution to this problem, I left what I have...
asked by 13.07.2017 / 11:32
1
answer

Put a combobox on a column of a datagridview

Using C #, with EntityFramework and codefirst, I have the following classes in my models layer: public class Cliente { public int ClienteId { get; set; } public string Nome { get; set; } public string Email { get; set; } public...
asked by 08.07.2017 / 04:11
1
answer

Single entry in ASP.NET form

I have a code that makes the register of certain types of equipment, the form fields that I have are: Name, Server, Type and Port of the equipment. I would like the user not to register two devices with the same port and I do not know how to...
asked by 03.07.2017 / 15:08
1
answer

Send email to multiple recipients

I have a class to send email, which works perfectly for only one recipient, however I need to send to several people, I made a select that searches the emails I need and places the ";". But when I try to send it this way, I get the error "An inv...
asked by 05.07.2017 / 15:37
1
answer

How to do security by profile with Asp.Net MVC?

I'm creating a system using Asp.Net MVC and before I start I need to do profile-based security. I will have several profiles each with an access option. For example: Administrator Profile (access all), Common Profile (restricted access), Advance...
asked by 02.09.2017 / 20:00
1
answer

Remove virtual properties from TypeDescriptor.GetProperties ()

I've done a question of how to use SQLBulkCopy, the user @VirgilioNovic showed me a code that uses reflection to be able to save any type of list, however I do TypeDescriptor.GetProperties() it brings the properties collection an...
asked by 22.09.2017 / 13:48
1
answer

API rest not receiving anything from another app other than mine [closed]

Can you prevent another application from sending or receiving information from my REST?     
asked by 21.09.2017 / 21:15