'La cadena de entrada no tiene el formato correcto.'

Miguel Sal 0 Reputation points
2023-05-24T03:45:26.62+00:00

Bueno, el problema surge al momento de registrar los datos. El detalle se marca en este lugar:

 AR = new ARTICULOS
                        {
                            Arti = Text1.Text,
                            ANombre = Text2.Text,
                            APrecio = int.Parse(Text3.Text),
                            ATipo = Text4.Text,
                            D = Text5.Text
                        };
                        

Y al convocar artículos me refiero a esto:

public class ARTICULOS

{
    public string Arti { get; set; }
    public string ANombre { get; set; }
    public int APrecio { get; set; }
    public string ATipo { get; set; }
    public string D { get; set; }
}

No entiendo porque marca error, si el tipo de dato que registro y el que se envía son correctos.

Community Center | Not monitored
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.