Questions tagged as '.net'

1
answer

User property, utility and possible casts

For educational purposes, I was looking at the User property of the Asp.Net MVC Controller class. I saw a example , very interesting , that a base class for controllers has been implemented and it has the CurrentUser property:...
asked by 25.09.2014 / 15:24
1
answer

Error publishing application on iis 8.5

I'm trying to publish an application made in FluorineFx in IIS 8.5 , I allow MIME type .aspx , however when I access a page I have the following: Does anyone have an idea what it can be?     
asked by 04.08.2014 / 20:50
2
answers

Relate Check Boxes with Radio Buttons

I'm with a project where I have to put occurrences. This is a project from a school. Then the occurrences would be like this: An occurrence would be a warning or a suspension, and its causes, that is, it messed up in a room, cursed a teacher, di...
asked by 05.05.2014 / 18:07
1
answer

How to force the occurrence of an event from an extension method?

I'm creating an application in C # and I'm using the INotifyPropertyChanged interface like this: public class Test: INotifyPropertyChanged { private int foo; public int Foo { get => foo; set => Set(ref foo, value); }...
asked by 04.12.2018 / 16:26
2
answers

Combobox update linked to Binding

I'm working with the MVVM pattern, so far so good, I have a PessoaViewlModel class. In it I have a property IEnumerable<Municipio> Municipios , which shows me all the municipalities, according to UF(Unidade federa...
asked by 27.05.2014 / 19:50
2
answers

DLL distribution

I created a COM DLL in C # VS2010 to be distributed with another application in Delphi. This DLL only consumes in WEB Services. On the machine where the DLL was built, there is no error. But in the distribution when the DLL methods are exec...
asked by 20.02.2014 / 15:02
1
answer

How to create an extension method for the type of a class in VB.NET

I'm creating an MVC framework that will work similar to the Entity Framework inside a VB.NET project where I've created an attribute called TableAttribute that will set the table name and the schemas to the model , like this: Namespa...
asked by 25.10.2018 / 17:06
1
answer

Output ASP .NET MVC Cache

I am studying about the output cache in Asp .NET MVC to improve the performance of my application. From what I've seen it can be stored in various places like: · Any · Client · Downstream · Server · None · ServerAndClient Doubt If I ca...
asked by 13.11.2018 / 10:22
1
answer

How to make a LINQ query that returns the amount of people who were born per month?

I would like to make a LINQ query that returns the amount of people who were born in the month. In MySQL I make this query: SELECT COUNT(*) AS DataNacimento FROM pessoas WHERE MONTH (DataNascimento) = '12'; In LINQ I tried this query, bu...
asked by 24.11.2018 / 20:44
2
answers

Get next record in a clustered foreach

How could I be selecting the next record within a grouped foreach before it ends, without advancing in that loop ? The point where I think I might be getting this information is where GET THE NEXT ID DESSE FOREACH is written in the...
asked by 09.08.2018 / 16:24