protected void ButtonAddEmployeeCompensation_Click(object sender, EventArgs e) { RequestAddEmployeeCompensation request = new RequestAddEmployeeCompensation(); request.UserID = int.Parse(txtUserID.Text); request.BasicPay = Convert.ToDouble(txtBasicPay.Text); DAT.RegisterEmployeeCompensation(request); Response.Write("<script language='javascript'>alert('Successfully Added Compensation!.')</script>"); }