protected void btnSubmit_Click(object sender, EventArgs e) { Request request = new Request(); purchaseData = new PurchaseData(); RequestCart rc = new RequestCart(); request.CreatedBy = GlobalInfo.Userid; request.ReqStatus = "Pending"; request.RequestDate = DateTime.Now; request.Tokan = hftokanno.Value; rc.Tokan = hftokanno.Value; bool result = purchaseData.SubmitRequest(request); if (result) { rc.Purpose = string.Empty; rc.Specification = string.Empty; rc.Remark = string.Empty; bindCartList(rc); //clearFields(); divDanger.Visible = false; divwarning.Visible = false; divSusccess.Visible = true; pnlError.Update(); upMain.Update(); } else { divDanger.Visible = false; divwarning.Visible = true; divSusccess.Visible = false; lblwarning.Text = "Please Contact to Site Admin"; pnlError.Update(); } }