Questions tagged as 'c#'

3
answers

Difference between Console.Write () and Console.WriteLine ()?

What is the difference between Console.Write() and Console.WriteLine() ?     
asked by 20.07.2017 / 20:11
4
answers

How to generate random numbers for Draw? [closed]

I need to generate numbers for a promotion, these numbers should range from 0 to 99999. How can I distribute these numbers randomly and equitably, without repeating numbers already distributed?     
asked by 24.10.2016 / 23:44
2
answers

Communication of C # and C ++

How can I make C # code call a variable that is in a C ++ file for example. Knowing I'm using Visual Studio. C ++ code: #include "stdafx.h" #include <iostream> int main() { int test = 10; return 0; } but how can I access...
asked by 24.07.2018 / 19:05
0
answers

Load XML file stream into XRRichText

In my application, I get an array from bytes from an XML file. With it I create a stream , but when I try to load it and insert it into XRRichText , nothing happens. However, if I write the stream into a file on the user's compute...
asked by 04.06.2018 / 16:46
1
answer

Infinite Scroll ASP NET MVC C #

Good afternoon, I'm implementing an infinite list in asp net mvc and I have some doubts about what is the best way to do this. I implemented using partial view, making a request via ajax and return this partial view and give an append to my html...
asked by 11.09.2018 / 20:24
2
answers

How can I prevent a user from sending the same form multiple times?

I have a form on a page, sometimes users can double-click the button to submit the form ... The form is a @using (Ajax.BeginForm(...)) { } How can I prevent this from happening?     
asked by 20.12.2013 / 15:12
2
answers

Error "An error occurred while processing your request. "

I've developed an application in MVC C # for reporting in JSON, in my%% of cases it works normally, the query takes a long time because I get 2 to 3 databases depending on the report, the application in Azure, most of the time it gives an error...
asked by 10.10.2014 / 16:58
3
answers

Round numbers in C # being the decimal place 0 or 5

I need to round numbers in such a way that they have only one decimal place worth 0 or 5. For example 1 -> 1 1.1 -> 1.5 1.4 -> 1.5 1.5 -> 1.5 1.6 -> 2 2 -> 2 Does anyone know of a simple way to do this?     
asked by 17.05.2014 / 18:29
2
answers

When I type broken number, it removes the comma and sums as integer

static void Main(string[] args) { Console.Write("Digite sua primeira nota: "); double n1 = Convert.ToDouble(Console.ReadLine()); Console.Write("Digite sua segunda nota: "); double n2 = Convert.ToDouble(Cons...
asked by 13.09.2017 / 06:24
1
answer

How to integrate the application with Whatsapp? [closed]

I wanted to know if it's possible to integrate a C # application with Whatsapp?     
asked by 19.07.2017 / 14:48