Questions tagged as '.net'

1
answer

How do I set acceptable single values for an Enum property in a Serializable class?

Given enum as an example: public enum IcmsCst { [XmlEnum("00")] Cst00, [XmlEnum("10")] Cst10, [XmlEnum("20")] Cst20, ... } Is there a way to annotate so that I could specify that a particular type of ICMS could only a...
asked by 18.07.2018 / 22:07
1
answer

Alternatives to Microsoft Lightswitch

I have an application developed in .NET using a Microsoft extension called Lightswitch that unfortunately I can not open or run. However, it has become obsolete. What are the best alternatives in order to implement a new application similar t...
asked by 23.07.2018 / 10:59
1
answer

My JavaScript / AJAX function is not converting Date to the correct format

Hello I have a problem with an MVC project. My View needs to return values in Date for some Text Boxes (from the selection of the record by a Data Table) so that the user can edit the record. The problem is that the data is not being shown...
asked by 12.07.2018 / 14:57
1
answer

Creating a client-server architecture in C # [closed]

I made a N-tier test application (database access, presentation, business model, and transfer objects) worked quietly and I learned a lot about 3 layers and N layers. Now I want to make a program that is client-server and I have these doubt...
asked by 05.07.2018 / 01:33
2
answers

Pass connection string to dataset via code

How to pass the string connection to the dataset via code? because the application I'm developing can not contain app.config .     
asked by 09.01.2015 / 17:20
1
answer

What is Text = Resources of a dxe button?

I want to know what this excerpt is that one-button code dxe: ASPxButton, and how does it work? Text="<%$ Resources: Textos, BotaoLogin %>"     
asked by 05.01.2015 / 13:58
1
answer

Error CS0266 Can not convert implicitly

When trying to make a listing where I only filter the 5 largest records by values in descending order this error is occurring:    Error CS0266 Can not implicitly convert type   "System.Linq.IQueryable" in   "System.Collections.Generic.ICollec...
asked by 25.05.2018 / 15:03
1
answer

Error performing averaging

I would like to take the sum of all the wages and divide by the amount of employees, but this one giving error, when compilo says that it has 0 in the variables Count of the list and total. public class Informacao { public float salB...
asked by 01.04.2018 / 21:02
2
answers

Compile a .NET application into a self-contained executable

I was wondering if it is possible to compile a .NET Framework application into just one executable file. Without there being .dll external files. I did some research but I did not succeed.     
asked by 06.04.2018 / 19:34
1
answer

How to center text in a MessageBox?

I currently have this code: MessageBox.Show("Verificação da password incorreta \n Insira novamente"); And output looks like this: Verificação da password incorreta Insira novamente How do I make the output centered on the%     
asked by 02.04.2018 / 04:17