I'm learning from the book Use the Head and there is the following code to do an exercise of random items
public class Menu
{
public Random Randomico;
string[] Carnes = { "Rosbife", "Salame", "Peru", "Presunto", "Pas...
I have a form in Asp.Net for registration of vehicles, where there are DropDownList that are filled with data from the bank. However, when you click on Write it returns the error
System.Exception: 'IT WAS NOT POSSIBLE TO RECORD
Sy...
I think it's a somewhat conceptual question on the subject, but come on:
I have an example method that validates a user by checking whether it exists in the database, like this:
public bool ValidaCampos(string Nome)
{
string str = "sele...
Well, I'm developing the dashboard of a web system, in one of the filters I should list the top 5 clients and sort them by the highest amount of totals of invoices issued. I'm already able to list quietly, the problem is that the filter is listi...
I'm trying to put the following text in a string, but I can not ... when there is no error in the double quotation marks of the at ... to getting crazy. Can anyone help me?
, {
"@type": "ListItem",
"position": 2,
"item": {...
I have created a program that compresses files using 7z and how are several files within a loop and the program should compress 1 file at a time, I used WaitForExit()
The program works perfectly, but now I'd like to put a cance...
I need to delete a record, but in the WHERE clause one of the data has an apostrophe. How can I check this information, because it is obvious that it will give error.
DELETE FROM IES WHERE IDENTIFICACAO ='456' AND ESTADO='SP' AND MUNICIPIO='SA...
I have a method to return a query , but it is giving error.
Class Data.cs:
public static SqlDataReader retornaQuery(SqlCommand query, List<SqlParameter> parameters)
{
try
{
//Instância...
I have the TextBox fields, for example:
txtValorCompra would have to be typed by user 98,90 and can not be letters
txtNumero entry with integers
% with only letters.
Would you like to do this on the form?...
I'm trying to set the even and odd numbers of a total of 5 numbers entered by the user into a vector.
int[] atividade = new int[6];
for (int i = 1; i < 6; i++)
{
Console.WriteLine("Insira o " + i + "° num...