Questions tagged as 'c#'

0
answers

500 error consuming WebService [closed]

The code is returning the following error message:   An unhandled exception of type 'System.Net.WebException' occurred in System.dll       Additional information: The remote server returned an error: (500) Internal Server Error. Does any...
asked by 27.10.2016 / 12:35
0
answers

Default for using logs

I have a project organized as follows: 1. Web (ASP.NET MVC) 2. Application 3. Domain 4. Infra.Data 5. Infra.Log (NLog) 6. Infra.IoC The project references are as follows: - Web --> Application - Web --> Domain - Application --> D...
asked by 04.11.2016 / 21:28
1
answer

Numbers and Percentage in string C # MVC

My string is not coming with strange characters, it's coming with numbers and percentage. Example: "[email protected]" "teste%40test.com" or "fictício" "fict%C3%ADcio"     
asked by 11.05.2016 / 03:17
1
answer

Receive post from one view to another view

I have two Views. Index Assincrona When accessing index , it calls View Assincrona and gets a gif loading until the whole page ( Assincrona ) is loaded and shows in View . Controller Codes publ...
asked by 12.05.2016 / 18:12
2
answers

Converting a variable with replace to decimal

I am having a small question, I pass a 0,05 decimal value to a A variable of type string . After this variable receives this value, it converts , to point . , which is 0.05 After I do this replace, I co...
asked by 04.01.2016 / 18:58
1
answer

How to put a "show more" in the gridview

How to do this: Turnthisover: The only thing I can imagine is putting a treeview inside the gridview, even then, I do not even know if that's possible. Doubt is just about the same functional part, the aesthetic part I'm going to do...
asked by 05.04.2016 / 23:31
0
answers

BindingNavigator c #

Good afternoon! I'm using C # bindingNavigator to register data to the database, but I do not like how the process is done with the buttons up there and have to click that yellow button to add a new record. Clicking on the save button visu...
asked by 28.01.2016 / 23:36
1
answer

Doubt Model Service DDD

I have a question about a project that follows the DDD architecture model. In a model service I need an information that is the result of a method of another service, what is the correct way to get this information, I create a property of thi...
asked by 25.01.2016 / 19:26
1
answer

Use of search / search filters with entity framework

I'm creating a grid with data from books and I'm adding some filters, the problem is when I create the filters of a table that has a link with that of books, I can not navigate (obs.:in a view I can navigate in the view) in the object to add it...
asked by 03.02.2016 / 13:50
1
answer

ObjectDisposedException

I have the following code snippet: var nivel = 1; List<meuObjeto> meusObjetos = new List<meuObjeto>(); using(var objectContext = ((IObjectContextAdapter)db).ObjectContext) { var cmd = string.Format(@"SELECT *...
asked by 26.01.2016 / 19:35