Questions tagged as '.net'

2
answers

Visualization of Colors and creation of new

I need to make use of the class Colors defined in the namespace Windows.UI . There are many colors available and I'm having to find a way or a place to see a preview of those colors, because only by name is difficult to know...
asked by 31.12.2016 / 20:59
2
answers

Copy a List to another List without dependencies

How do I copy data from one list to another so that they are independent of one another? I have a < > of a class that I created where the data inserted in it, will appear in a listBox, and wanted to copy everything that is in that list to...
asked by 16.12.2016 / 01:39
1
answer

Required validating property of another object

I have the following properties, but when I am going to validate via ModelState.IsValid it returns that the description of the user group being informed that it is UserId too, but the problem is that I am prompting for the bank itself to generat...
asked by 27.10.2015 / 01:40
2
answers

Using Array.Foreach to modify the collection

I want to remove spaces from the beginning and end of the string ( Trim ) in all positions of the array , but none of the forms below worked. What am I doing wrong? var optionArray = new string[] { "in the jungle ", " the mighty jungle"...
asked by 26.07.2016 / 19:34
1
answer

JSP for .NET developers

I am a .NET developer who needs to understand a bug that occurs in a JSP application. (I do not need to compile or fix it, just understand how it is using the database and so on.) I already have Eclipse, loaded solution, I have the fonts and...
asked by 28.07.2016 / 23:04
2
answers

How to ensure that the instantiation of a class is done only through the "using"?

I am creating a DLL with some database functionality (ADO.Net). It would be very convenient to ensure that the instantiation of connections is always only via using (block), so do not forget to call Dispose() / Close() . But...
asked by 12.03.2015 / 21:22
2
answers

Lock / fade screen during postback

I know that to effect this blocking / fading effect I can use JavaScript or some AJAX component. I find this kind of care interesting to prevent the user from clicking on the same button several times, which can cause problems. In addition to...
asked by 26.11.2014 / 20:08
3
answers

Line break in email message

In my string mensagem , I would like to have a space of two lines, I already tried to use "/ n" and did not get the expected result. @{ var customerName = Request["customerName"]; var customerEmail = Request["customerEmail"];...
asked by 13.11.2014 / 13:23
2
answers

How to check if the file name has 16 digits?

namespace _06_Teste { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void cmdValidar_Click(object sender, EventArgs e) { foreach (Stri...
asked by 08.01.2015 / 14:00
1
answer

A little more about File.WriteAllBytes

How to display a progress by synchronizing the following function: File.WriteAllBytes(string path, byte[] content); This method should be called according to a System.Threading.Thread Ex: Thread wnd; string wnd_file; byte[] wnd_...
asked by 29.01.2015 / 22:56