Hi i'm trying to add information into an int but i don't know how to declare it as an Int
I am trying to input an age as an int but don't know how.
my code:
Author authorAdd = new Author();
authorAdd.Name = txtName.Text;
authorAdd.Age = txtAge.Text;
I have tried .Int I know that it is not .Text that i need but i can't remember what I do need, thanks.