If a total of days is greater than 30 and less than 60, I do something. If it's bigger than 60 and smaller than 90 I do something else and so on. How do I case ? Is case the best option?
In the program I'm writing, I download a ZIP file over the internet
and then need to upload the extracted ZIP files to another place.
It turns out that I can not find a way to read the contents of this ZIP file - now a Stream - without first...
In creating my program, I put a Form so that you can use it to "Report Error / Suggestions". In this form I put 2 textbox and 1 button . 1 textbox to Subject , and the other to write what you want (message).
The button serves to sen...
This is the code for my class:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Banco_Exercicio1
{
public class Conta
{
public string Titular { get; set; }
public double...
How to save images to repository and retrieve it through a Path with Asp.Net MVC?
Searching in some places, I noticed that saving images directly to the database can have a significant loss of performance in the application.
I have the following line of code and wanted to know if it is possible to do two select within a single sql command
cmd = new MySqlCommand("insert into FUNCIONARIO('CPF_FUNCIONARIO', 'NOME_FUNCIONARIO', 'RG_FUNCIONARIO ', 'ENDEREÇO_FUNCIONARIO...
I have a viewbag, and wanted to display dates of at most 1 day before the current day, I made the code below, but without success, what alternative would I have?
if (item.DataHora < DateTime.Now - 1)
{
//codigo
}
These are my ViewData in controller:
public ActionResult Acao()
{
RupturaEntities db = new RupturaEntities();
var _listaUnidade = Enumerable.Empty<object>();
var _listaFamilia = Enumerable.E...
I have the following field that returns me the date as follows: 09/17/2018 11:52 AM
How to put it within the default pt. I already tried to put .ToString("dd/MM//yyyy") in model.dtProtoclo but it did not work.
<div class="f...
I'm having this error while running the application
I only have this, I can not even put a break point, because it does not even enter the application. I do not know what to do.
This code works on another machine. I copied the code from...