I have one form in which i have 6 textbox control. i am storing form data in variable which is declared in class file. i want data should be stored in array and retrive data from array and display in textbox contorl. i want it should be done using class file.
below is my class file where i declared variable.
public static string emailid, address, street, city, telephoneno, pincode ;
In form i have button to store data in variable.
private void btnNext_Click(object sender, EventArgs e)
Data.emailid = txtemailid.Text;
Data.address = txtaddress.Text;
Data.street = txtstreet.Text;
Data.ccity = txtcity.Text;
Data.pincode = txtpincode.Text;
Data.telephoneno = txttelephone.Text;
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)