protected void Button1_Click(object sender, EventArgs e) { RequestTimeChangeRequest request = new RequestTimeChangeRequest(); request.Username = Session["Username"].ToString(); request.AttendanceDateChange = txtAttendanceDateChange.Text; request.TimeInChange = txtTimeInChange.Text; request.TimeOutChange = txtTimeChangeOut.Text; request.Reason = txtReason.Text; DAT.TimeChangeRequest(request); Response.Write("<script language='javascript'>alert('Successfully Added Request!.')</script>"); }