Questions tagged as 'c#'

2
answers

Shopping cart store on client or server? [closed]

How best to store items in a shopping cart? In the javascript itself, on the client side or on a server session, either using $_SESSION(php) or Session["sessao"](C# Which would be better? safer and better for the user?...
asked by 01.04.2014 / 05:11
0
answers

MVC5 projects separated from .Net Identity

I would like to create a solution where I have 3 projects obeying the following structure: The index of my site will be responsible for registering the user so that he has access to the other systems (WebApp1 and WebApp2). But when I run the...
asked by 06.03.2015 / 18:33
2
answers

How to convert Float to String using LINQ to entity?

How to convert Float to String using LINQ to entity? I need to convert a field from my database that has the float type to the string type in my C # using LINQ. Try using Convert.ToString, ChaveArquivo = Convert.ToString(n.scanIma.I...
asked by 22.09.2016 / 15:20
3
answers

Doubts in Calculation of%

Would anyone know how to explain the following formula? I have 3 values: Valor_Vendido , Valor_Minimo_A_Ser_Vendido and %_Atingida . Example: I sold 500 reais and Valor_Minimo_A_Ser_Vendido was to be 1000 reais, s...
asked by 20.04.2017 / 19:51
2
answers

What value is checked in a condition operation with value assignment to a variable?

I have a method that does a check and the return of this method I store in a variable of type bool . When I execute this operation, does C # test the value of the variable or the return value of the method? Example: bool retorno =...
asked by 23.05.2017 / 19:36
1
answer

What is the use and where can I use C #?

Many people talk too well about C #. What is the real functionality of it today? Is it serious that it can be linked with JavaScript and CSS? Is it used to create applications for Windows, Android and etc? Can you tell me about it an...
asked by 13.05.2017 / 15:34
3
answers

How to create a class with type inference that can have a default type in C #

I'm creating a class where I do the type inference, as in the example below: public class Foo<T> { public T Bar { get; set; } } Is there any way I can set T to a default type like string ? My intention is to be able to use b...
asked by 16.10.2018 / 20:48
0
answers

StackOverflowException for more than 50mil values [closed]

The code sorts a vector of up to 50,000 values from a txt and stored in an array by quicksort , but for 60,000 values or more, gives Overflow. I have already changed values to Int64 and it persists ... (obs: I change the size of t...
asked by 01.11.2014 / 16:15
1
answer

Error when ordering with PagSeguro API

When I try to create the payment, I get the following error. I'm using the following package: link    Additional information: For security reasons, the DTD is prohibited   in this XML document. To enable processing of the DTD, set the   Dtd...
asked by 05.11.2014 / 23:59
0
answers

How to use HasMorePages on this occasion?

Well, I have a printing system here that is working perfectly. The problem I'm facing is regarding the use of bool HasMorePages . I'm not sure how to implement it to print multiple pages if the content does not fit into one. Take a look at...
asked by 23.11.2014 / 02:40