Questions tagged as 'c#'

3
answers

Compare two querys

I have a query that returns only the catechizers that went to the event: var catequizandosCheked = (from cat in db.Catequizando where cat.Eventos.Any(e => e.EventoID == eventoID)...
asked by 16.05.2016 / 19:58
1
answer

CurrentItemChanged event of a BindingSource is not called when changing a subitem

I have a class like this: public class Foo { #region Construtor public Foo() { } #endregion #region Propriedades public virtual int? Id { get; set; } public virtual string Description { get; set; } public vir...
asked by 16.05.2016 / 14:24
1
answer

Problems with FolderBrowserDialog. Application hangs

I have an application (WPF) that has been running for about 2 months without any problems. I needed to make a change. When doing, in the line where I should choose a folder to save the result of my application, the application hangs (seems to ge...
asked by 19.05.2016 / 14:39
1
answer

Interact with Windows service to send and receive data?

I created a service in Windows that is installed on localhost and now has to interact with this service. Within my web application I will give a query command that will be sent to this service and this service will do this query on another IP...
asked by 18.05.2016 / 16:15
1
answer

C # Web Forms - Losing session

I have a Web Forms application that saves the session when the user logs in, with a timeout of 21 minutes without using the application to expire the session: <sessionState timeout="21" /> Performing tests on the local machine, the li...
asked by 18.05.2016 / 14:38
1
answer

Format dates in sql

I have a program in the c # (Visual Studio) registry that contains a textbox to receive a date. Knowing that SQL writes the date in American format, how can I make the user type the date in Brazilian format and that date can be saved successfull...
asked by 21.07.2016 / 13:57
1
answer

Highlighting does not work in Razor MVC 5 views

I'm having a Razor ASP.NET MVC 5 project that was built on VS2013 on another computer. When loading it on my computer with VS2012 the highlighting and IntelliSense Views (cshtml) do not work. I noticed that my VS2012 did not have MVC 5, if I...
asked by 21.07.2016 / 15:53
0
answers

Automapper with related entity

Good afternoon, Mapping the following entities public class Artista { public Artista() { ArtistaCategoria = new List<ArtistaCategoria>(); } public int ArtistaId { get; set; } p...
asked by 16.05.2016 / 21:33
1
answer

Write FileUpload Path within an ASP.NET UpdatePanel

Expensive, The question of my doubt is quite simple. How do I save the path of my FileUpload file to some control or ViewState, with that FileUpload being inside an UpdatePanel? I am actually using the AsyncFileUpload AJAX control, since a...
asked by 16.05.2016 / 20:18
0
answers

Do not align zero value on crystal report C #

I have a report made in Crystal Report C # on VS2015. In fields that are decimal when the value is zero the report exits with a space after the decimal places. When it is not zero: | 100,00| When zero: | 0,00 | There is...
asked by 04.08.2016 / 15:59