protected void btnNext_Click(Object Sender, EventArgs e) { int intRequest = Int32.Parse(Request.QueryString["rid"]); int intItem = Int32.Parse(lblItem.Text); int intNumber = Int32.Parse(lblNumber.Text); int intProject = oRequest.GetProjectNumber(intRequest); if (intProject > 0) { oProject.Update(intProject, 0, Int32.Parse(Request.Form[hdnExecutive.UniqueID]), Int32.Parse(Request.Form[hdnWorking.UniqueID]), 0, 0, 0); } else { oProjectsPending.Update(intRequest, 0, Int32.Parse(Request.Form[hdnExecutive.UniqueID]), Int32.Parse(Request.Form[hdnWorking.UniqueID]), 0, 0, 0); } oCustomized.AddTPM(intRequest, intItem, intNumber, Int32.Parse(ddlPriority.SelectedItem.Value), txtStatement.Text, DateTime.Parse(txtStart.Text), DateTime.Parse(txtEnd.Text)); oRequest.UpdateStartDate(intRequest, DateTime.Parse(txtStart.Text)); oRequest.UpdateEndDate(intRequest, DateTime.Parse(txtEnd.Text)); oRequestItem.UpdateForm(intRequest, true); Response.Redirect(oPage.GetFullLink(intPage) + "?rid=" + intRequest.ToString()); }