What is the correct way to get the value of a ComboBox populated by a DataTable ?
I'm using the following code:
private void ComboBox3_SelectedIndexChanged(object sender, EventArgs e)
{
Consulta_cidade cidade = new Consulta...
I'm trying to set the MissingSchemaAction property of a NpgsqlDataAdapter object, but Visual Studio is complaining that the property does not exist.
I looked at the github project and saw that NpgsqlDataAdapter inherits...
I'm creating an application that makes multiple connections simultaneously. For each connection I create a TextBox and a BackgroundWorker . When I run DoWork of BackgroundWorker I use several ProgressPercentage...
The problem appears in the penultimate line of the code below, what can I do? Note: I've already tried using StreamReader, but it did not work.
string CJ;
string CJ1;
string CJ2;
StreamReader LJ = new StreamRead...
I need a list of musicians without repetitions, but it is bringing duplicate values, according to the amount of songs that each Musician has, how do I bring just one Musician?
public ActionResult SelecaoMusico()
{
List<Musico> musico...
How do I remove the line without getting whitespace?
N7 G90
N8 G26 RA 10.840
N9 G54 G92 X115.00 Y25.00
N11 C5
N12 D14
N13 G42 G01 X76.3276 Y-19.86
Having to look like this:
N7 G90
N8 G26 RA 10.840
N9 G54 G92 X115.00 Y25.00
N11 C5
N12 D1...
I'm trying to fetch the logged-in user ID like this:
public int CurrentUserID()
{
return Convert.ToInt32(User.Identity.GetUserId());
}
This method is in AccountController and I want to call it from any other controlle...
I am trying to do the following: the user types his / her zip, and then it is populated automatically, estado (select) cidade (select), rua (input) and bairro (input), when the user types his / her zip and for example...
The problem is:
I have a dropdownlist loaded from an enum, which may come with the null value of the screen.
listaItensSolicitados = os.Site == null ?
this.itemSolicitadoService.Consultar(o =>
o.ItemServico.Servico.Chave...
I needed to abstract the Controllers of an application ASP.NET MVC to a Class Library because I'm using different technologies in the same application.
However, I have the error:
'System.Web.HttpContextBase' does no...