protected void Submit_Click(object sender, EventArgs e) { ClubBAISTRequestDirector CBRD = new ClubBAISTRequestDirector(); Application NewApplication = new Application(LastName.Text, FirstName.Text, Address.Text, PostalCode.Text, Phone.Text, AltPhone.Text, Email.Text, DateTime.Parse(DateofBirth.Text), Occupation.Text, CompanyName.Text, CompanyAddress.Text, CompanyPostalCode.Text, CompanyPhone.Text, DateTime.Parse(SubmitDate.Text), char.Parse(Sexlist.SelectedValue), Share.Checked, ShareholderName1.Text, ShareholderName2.Text, DateTime.Parse(ShareholderDate1.Text), DateTime.Parse(ShareholderDate2.Text), Password.Text); bool confirmation = CBRD.AddApplication(NewApplication); if (confirmation) { Message.Text = "Application successfully submitted"; } }