add text field to a list in c#

welshman

New Member
How do you take user inputted data from textboxes and store that into a list?Like if I have a student with first name, last, major etc. How should I store this?\[code\]public partial class assn1 : System.Web.UI.Page{ public void Page_Load(object sender, EventArgs e) { Student t1 = new Student(); List<Student> studentList = new List<Student>(); } public void addButton_Click(object sender, EventArgs e)\[/code\]I created the class in the appcode .cs page but do I start adding data there or where the button is?
 
Back
Top