protected void fvStampDutyCalculation_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { ((FormView) sender).ChangeMode(FormViewMode.ReadOnly); ArrayList items = new ArrayList();items.Add(((FormView) sender).DataItem); fvResult.DataSource = items; fvResult.DataBind(); }
protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { FileUpload fu = (FileUpload)FormView1.FindControl("FileUpload1"); String filePath = Server.MapPath(@"~/Uploads/" + fu.FileName); fu.SaveAs(filePath); // Response.Redirect("HomepageProjects.aspx"); }
protected void myItemUpdated(object sender, FormViewUpdatedEventArgs e) { System.Web.UI.WebControls.FormView formView = sender as System.Web.UI.WebControls.FormView; Obout.Ajax.UI.FileUpload.FileUpload fileUpload = formView.FindControl("fileUpload1") as Obout.Ajax.UI.FileUpload.FileUpload; if (fileUpload != null) { if (fileUpload.PostedFiles.Count > 0) { string result = ""; foreach (PostedFileInfo info in fileUpload.PostedFiles) { // Here you can place the code to save uploaded files // if (result.Length == 0) { result = "<b>Uploaded files:</b><br><br>"; result += "<table border='0' cellspacing='2' cellpadding='2'>"; result += "<tr><td style='font-weight: bold; text-align:left;'>File name</td><td style='font-weight: bold; text-align:left;'>Length</td><td style='font-weight: bold; text-align:left;'>Content type</td></tr>"; } result += "<tr><td style='text-align:left;'>" + info.FileName + "</td><td style='text-align:left;'>" + info.ContentLength.ToString() + "</td><td style='text-align:left;'>" + info.ContentType + "</td></tr>"; } if (result.Length == 0) { result = "No files uploaded"; } else { result += "</table>"; } label.Text = result; } } }
protected void convenioAjusteFormView_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { this.pnlConfirmacion.Visible = true; /*this.pnlConfirmacion.Style.Remove(HtmlTextWriterStyle.BackgroundColor); this.pnlConfirmacion.Style.Add(HtmlTextWriterStyle.BackgroundColor, "RED");*/ this.lblError.Text = "El convenio ha sido actualizado, haga click en ver PDF para poder imprimir el convenio"; //e.Cancel = true; }
protected void fvScheduleBaseInfo_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { WebParts_ScheduleHotelCtl ctl = fvScheduleBaseInfo.FindControl("ScheduleHotelCtl1") as WebParts_ScheduleHotelCtl; if (ctl != null) { ctl.SaveData(); } }
protected void frmCorreoUpdate_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { HtmlControl h = (HtmlControl)this.frmCorreoUpdate.FindControl("pnlMsg"); h.Visible = true; ImageButton btnSave = (ImageButton)this.frmCorreoUpdate.FindControl("imgBtnSave"); btnSave.Visible = false; }
protected void formClient_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { if (e.Exception != null) { showException(e.Exception, labelException, "updating the client"); e.ExceptionHandled = true; e.KeepInEditMode = true; } }
protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { String rawUrl = this.Request.RawUrl.Replace("&inserted=true", ""); rawUrl = rawUrl.Replace("&updated=true",""); rawUrl = rawUrl + "&updated=true"; Response.Redirect(rawUrl); }
protected void FormView_LibraryRegister_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { if (e.Exception == null) { ShowMessage("Record has been updated successfully", false); } else { ShowMessage("Unable to update record", true); } }
protected void FormView_NoRecordCertificate_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { if (e.Exception == null) { ShowMessage("Record has been updated successfully", false); } else { ShowMessage("Unable to update record", true); } Multiview_NoRecordCertificate.SetActiveView(view1_GridView); }
protected void FormView_SunavniRegister_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { if (e.Exception == null) { ShowMessage("Record has been updated successfully", false); } else { ShowMessage("Unable to update record", true); } Multiview_SunavniRegister.SetActiveView(ViewGrid); }
protected void FormView_MarriageVolume_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { if (e.Exception == null) { ShowMessage("Record has been updated successfully", false); } else { ShowMessage("Unable to update record", true); } Multiview_Marriage_Volume.SetActiveView(View1_Gridview_MarriageVolume); }
protected void FormViewCoberturasAplicables_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { if (e.Exception != null) { showMessage("Error : " + e.Exception.Message); e.ExceptionHandled = true; e.KeepInEditMode = true; } else { GridViewCoberturas.DataBind(); } }
protected void fvVendorDetails_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { fvVendorDetails.ChangeMode(FormViewMode.Edit); if (e.Exception == null) { ((IGRSS_Default)this.Master).ShowStatusMessage(Status_Messages.SaveSucess, Status_Messages.SaveSucessDescription, MessageType.Success); Response.Redirect("~/Default.aspx"); } else { ((IGRSS_Default)this.Master).ShowStatusMessage(Status_Messages.SaveFailed, e.Exception.Message, MessageType.Error); } }
protected void formViewEmployee_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { if (e.Exception != null) { // Display a user-friendly message ltlMessage.Text = ExceptionManager.DoLogAndGetFriendlyMessageForException(e.Exception); // Indicate that the exception has been handled e.ExceptionHandled = true; // Keep the current UI in edit mode e.KeepInEditMode = true; } else ltlMessage.Text = MessageFormatter.GetFormattedSuccessMessage("Update successful"); }
// method triggered by form update (After) protected void frmCustomer_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { if (e.Exception != null) { lblError.Text = "A database error has occurred.<br />" + e.Exception.Message; if (e.Exception.InnerException != null) lblError.Text += "<br />Message: " + e.Exception.InnerException.Message; e.ExceptionHandled = true; e.KeepInEditMode = true; } else if (e.AffectedRows == 0) { lblError.Text = "Another user may have updated that Customer. Please try again."; } }
protected void OnUpdatedItem(object sender, FormViewUpdatedEventArgs e) { if (e.Exception != null) { e.ExceptionHandled = true; e.KeepInEditMode = true; ActionProcessor.IsError = true; Exception exception = e.Exception; while (exception.InnerException != null) exception = exception.InnerException; ActionProcessor.ReplaceLastAction(exception.Message); } }
protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { if (e.Exception == null) { lbl.Text = "<div class='uifw-message done'> <p class='uifw-message-header'><span>Successfull Message<span></p>Website Setting Save Successfully.</div>"; lbl.ForeColor = System.Drawing.Color.Green; lbl.Visible = true; } else { e.ExceptionHandled = true; lbl.Text = "<div class='uifw-message warning'> <p class='uifw-message-header'><span>Waring Message<span></p>Website Some thing went wrong Your Setting.</div>"; lbl.Visible = true; } }
protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { if (e.Exception == null) { lbl.Text = "<div class='uifw-message done'> <p class='uifw-message-header'><span>Successfull Message<span></p>User info Updated Successfully!</div>"; lbl.ForeColor = System.Drawing.Color.Green; lbl.Visible = true; } else { e.ExceptionHandled = true; lbl.Text = "<div class='uifw-message warning'> <p class='uifw-message-header'><span>Warning Message<span></p>Some thing went wrong When you are Register User</div>"; lbl.ForeColor = System.Drawing.Color.Red; } }
protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { if (e.Exception != null) { lblError.Text = "A database error has occurred. <br /><br />" + "Message: " + e.Exception.Message; e.ExceptionHandled = true; e.KeepInEditMode = true; } else if (e.AffectedRows == 0) { lblError.Text = "Another user may have updated that technician.<br /> Please try again."; } else { //no errors occurred ddlTechnician.DataBind(); } }
protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { if (e.Exception == null) { lbl.Text = "<div class='uifw-message done'> <p class='uifw-message-header'><span>Successfull Message<span></p>Page Contents Change Successfully.</div>"; lbl.ForeColor = System.Drawing.Color.Green; lbl.Visible = true; lbl.ForeColor = System.Drawing.Color.Green; } else { e.ExceptionHandled = true; lbl.Text = "<div class='uifw-message warning'> <p class='uifw-message-header'><span>Warning Message<span></p>Some thing went wrong When you Created This Page</div>"; lbl.Visible = true; } }
protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { if (e.Exception != null) { lblError.Text = "An exception has occurred. " + "Please check all entries and try again.<br /><br />" + "Message: " + e.Exception.Message; e.ExceptionHandled = true; e.KeepInEditMode = true; } else if (e.AffectedRows == 0) { lblError.Text = "Another user may have updated that product. " + "Please try again."; } else { GridView1.DataBind(); } }
protected void VisitDetailsFormView_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { e.ExceptionHandled = ResultAlert.SetResultAlertReturn("Visit updated successfully!", e.Exception); }
protected void VisitDetailsFormView_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { VisitGridView.DataBind(); //ChildrenServedFormView.DataBind(); }
protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { GridView1.DataBind(); MultiView1.ActiveViewIndex = 0; }
protected void frmViewLocalizacao_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { gvEstados.DataBind(); PanelEditarApagar.Visible = true; btnAdicionar.Enabled = false; }
protected void fvMain_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { base.NavigateBack(); }
protected void HospitalFormView_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { Response.Redirect("~/hospital.aspx"); }
protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { Response.Redirect("~/EditareMostre.aspx"); }
protected void FormView_worksheet_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { GridView_worksheet.DataBind(); MultiView_worksheet.SetActiveView(viewGrid); }
protected void newTeamForm_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { message.Show(); newTeamForm.Visible = false; }
//end insert /// <summary> /// do we need these events? Errors are being trapped in save/insert anyway. check for errors on item updated or inserted /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void fmvContainer_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { if (e.Exception != null) { this.dxlblErr.Text = e.Exception.InnerException.ToString(); this.dxpnlErr.Visible = true; } else { //have to do this or formview will automatically swtich to read-only mode after update //e.KeepInEditMode = true; Response.Redirect("..shipment_containers/container.aspx?&mode=ReadOnly&pno=" + get_token("pno"), true); } }
protected void MemberInfoFormView_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { Response.Redirect("Order.aspx"); }
protected void fvDatosGenerales_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { Response.Redirect(this.Request.Url.ToString()); }
protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { Response.Redirect("manageStdInfo.aspx");//转入学生管理页面 }
protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { Response.Write("<script>window.opener.WinReload();window.close();</script>"); Response.End(); }
protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { Response.Redirect("~/drugGroup.aspx"); }
/// <summary> /// Handles the ItemDeleted event of the FormView /// Use it to refresh the GridView to reflect the changes. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void EmployeeFormView_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { EmployeesGridView.DataBind(); }
protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { Response.Redirect("Default.aspx"); }
protected void FormView1_ItemUpdated1(object sender, FormViewUpdatedEventArgs e) { Label1.Text = "Güncelleme işlemi başarıyla gerçekleşti"; }
protected void CustFormView_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { CustomersView.DataBind(); }
protected void PageFormView_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { Response.RedirectToRoute("SewenWikiPage"); }
protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { this.RegisterStartupScript("", "<script>opener.location.reload();</script>"); this.FormView1.ChangeMode(FormViewMode.ReadOnly); }
protected void frmViewAdd_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { try { if (e.Exception == null) { if (hdSMS.Value == "YES") { BusinessLogic bl = new BusinessLogic(); string conn = bl.CreateConnectionString(Request.Cookies["Company"].Value); UtilitySMS utilSMS = new UtilitySMS(conn); string UserID = Page.User.Identity.Name; if (Session["Provider"] != null) { utilSMS.SendSMS(Session["Provider"].ToString(), Session["Priority"].ToString(), Session["SenderID"].ToString(), Session["UserName"].ToString(), Session["Password"].ToString(), hdMobile.Value, hdText.Value, true, UserID); } else { if (hdMobile.Value != "") { ScriptManager.RegisterStartupScript(Page, Page.GetType(), Guid.NewGuid().ToString(), "alert('you are not configured to send SMS. Please contact Administrator.');", true); } } } MyAccordion.Visible = true; lnkBtnAdd.Visible = true; frmViewAdd.Visible = false; MyAccordion.Visible = true; GrdViewReceipt.DataBind(); GrdViewReceipt.Visible = true; } else { if (e.Exception.InnerException != null) { StringBuilder script = new StringBuilder(); script.Append("alert('You are not allowed to Update this record. Please contact Supervisor.');"); if (e.Exception.InnerException.Message.IndexOf("Invalid Date") > -1) { ScriptManager.RegisterStartupScript(Page, Page.GetType(), Guid.NewGuid().ToString(), script.ToString(), true); } else { ScriptManager.RegisterStartupScript(Page, Page.GetType(), Guid.NewGuid().ToString(), "alert('Exception Occured : " + e.Exception.InnerException.Message + "');", true); } e.ExceptionHandled = true; e.KeepInEditMode = true; lnkBtnAdd.Visible = false; //frmViewAdd.Visible = true; //GrdViewReceipt.Visible = true; } } } catch (Exception ex) { TroyLiteExceptionManager.HandleException(ex); } }
protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { this.RefreshParentPage(); }
protected void FVRefundApplication_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { mvRefund.ActiveViewIndex = 1; }
protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { Response.Write("<script>window.opener.location.reload();</script>"); }
protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { this.RegisterStartupScript("", "<script>opener.parent.location.reload();</script>"); }
protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { }
protected void fvResult_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { }
protected void frwNovoCidade_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { Response.Redirect("~/Cidades"); }
//protected void gvVendorDetail_SelectedIndexChanged(object sender, EventArgs e) //{ // mvLicApp.SetActiveView(mvLicApp.Views[1]); // //fvVendorDetails.ChangeMode(FormViewMode.Edit); // fvReadOnly.ChangeMode(FormViewMode.ReadOnly); //} protected void fvVendorDetails_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { mvLicApp.SetActiveView(mvLicApp.Views[0]); txtApplicationNo.Text = ""; }
protected void CustFormView_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { CustomersView.DataBind(); }
protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { Response.Redirect(Request.Url.AbsoluteUri); }
protected void frwNovoTipo_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { Response.Redirect("~/Financeiro/Cadastros//FinTipoBaixaDefault.aspx"); }
protected void FvOutward_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { gvOutWardDetails.DataBind(); mvOutwardRegister.SetActiveView(vieGrid); }
protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { Response.Redirect("/./BackEnd/BS_入住事項.aspx"); }
protected void AgentFormView_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { AgentsView.DataBind(); }
protected void FormView2_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { this.GridView1.DataBind(); }
protected void ICDDetailsFormView_ItemUpdated(object sender, FormViewUpdatedEventArgs e) { // display the result alert e.ExceptionHandled = ResultAlert.SetResultAlertReturn("ICD updated successfully!", e.Exception); }