protected void Button1_Click(object sender, EventArgs e) { RequestAddUser requestAddUser = new RequestAddUser(); requestAddUser.LName = txtLName.Text; requestAddUser.FName = txtFName.Text; requestAddUser.Nickname = txtNickname.Text; requestAddUser.MName = txtMName.Text; requestAddUser.DOB = CalendarDOB.SelectedDate.ToString(); requestAddUser.CivilStatus = DropDownListCivilStatus.Text; requestAddUser.Gender = DropDownListGender.Text; requestAddUser.Username = txtUsername.Text; requestAddUser.Password = txtPassword.Text; try { DAT.AddUser(requestAddUser); } catch { Response.Write("Adding User Failed!"); } }