protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e) { FileUpload fu = (FileUpload)FormView1.FindControl("FileUpload1"); String filePath = Server.MapPath(@"~/Uploads/" + fu.FileName); fu.SaveAs(filePath); Response.Redirect("AllNews.aspx"); }
protected void formView_ItemInserted(object sender, FormViewInsertedEventArgs e) { if (e.Exception != null) { showException(e.Exception, labelException, "inserting the client"); e.ExceptionHandled = true; e.KeepInInsertMode = true; } }
protected void FormView1_ItemInserted1(object sender, FormViewInsertedEventArgs e) { SqlConnection cnn = new SqlConnection(SqlDataSourceRichiestaMateriale.ConnectionString); int IDRap = DataAccess.ReturnMaxValueTable("ArtRichiesta", "IDArtRichiesta", cnn); Controlli_ViewRigheRichiestaArt miocontrollo = (Controlli_ViewRigheRichiestaArt)FormView1.FindControl("ViewRigheRichiestaArt1"); miocontrollo.SalvaRigheConIDRapportino(IDRap); Response.Redirect("~/Anagrafica/Richiestamateriale.aspx?IDArtRichiesta=" + IDRap); }
protected void FormView_Inward_ItemInserted(object sender, FormViewInsertedEventArgs e) { if (Page.IsValid) { if (e.AffectedRows > 0) { mvInward.SetActiveView(vieGrid); } } }
protected void FormView_SunavniRegister_ItemInserted(object sender, FormViewInsertedEventArgs e) { if (e.Exception == null) { ShowMessage("Record has been added successfully", false); } else { ShowMessage("Unable to add record", true); } }
protected void formViewEmployee_ItemInserted(object sender, FormViewInsertedEventArgs 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 row in edit mode e.KeepInInsertMode = true; } }
/// <summary> /// Evento che avviene dopo aver eseguito L'inserimento /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void FormViewCliente_ItemInserted(object sender, FormViewInsertedEventArgs e) { if (e.Exception == null) { Response.Redirect(lblLastPageView.Text); } else { lblError.Text = e.Exception.Message; } }
protected void FormViewCoberturasAplicables_ItemInserted(object sender, FormViewInsertedEventArgs e) { if (e.Exception != null) { showMessage("Error : " + e.Exception.Message); e.ExceptionHandled = true; e.KeepInInsertMode = true; } else { GridViewCoberturas.DataBind(); } }
protected void fvSaleRegister_ItemInserted(object sender, FormViewInsertedEventArgs e) { if (e.Exception == null) { ((IGRSS_Default)this.Master).ShowStatusMessage(Status_Messages.SaveSucess, Status_Messages.SaveSucessDescription, MessageType.Success); } else { ((IGRSS_Default)this.Master).ShowStatusMessage(Status_Messages.SaveFailed, e.Exception.Message, MessageType.Error); } }
protected void FvVendorOffence_ItemInserted(object sender, FormViewInsertedEventArgs e) { mvVendorOffence.SetActiveView(mvVendorOffence.Views[0]); if (e.Exception == null) { ((IGRSS_Default)this.Master).ShowStatusMessage(Status_Messages.SaveSucess, Status_Messages.SaveSucessDescription, MessageType.Success); } else { ((IGRSS_Default)this.Master).ShowStatusMessage(Status_Messages.SaveFailed, e.Exception.Message, MessageType.Error); } }
protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs 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.KeepInInsertMode = true; } else { GridView1.DataBind(); } }
protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e) { if (e.Exception != null) { lblError.Text = "A database error has occurred. <br /><br />" + "Message: " + e.Exception.Message; e.ExceptionHandled = true; e.KeepInInsertMode = true; } else { //no errors occurred ddlTechnician.DataBind(); } }
protected void formView_ItemInserted(object sender, FormViewInsertedEventArgs e) { if (e.Exception != null) { showException(e.Exception, labelException, "adding the client"); e.ExceptionHandled = true; e.KeepInInsertMode = true; } else { bool existing = (bool)e.Values["ExistingAssets"]; if (existing && newClientGuid != Guid.Empty) { string url = String.Format("~/Pages/Client/edit.aspx?guid={0}", newClientGuid); Response.Redirect(url); } } }
protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e) { if (e.Exception == null) { lbl.Text = "<div class='uifw-message done'> <p class='uifw-message-header'><span>Successfull Message<span></p>New Page Created 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 Created This Page</div>"; lbl.Visible = true; } }
protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e) { FileUpload fu = (FileUpload)FormView1.FindControl("FileUpload1"); String filePath = Server.MapPath(@"~/Uploads/" + fu.FileName); fu.SaveAs(filePath); FileUpload fu2 = (FileUpload)FormView1.FindControl("FileUpload2"); String filePath2 = Server.MapPath(@"~/Uploads/" + fu2.FileName); fu2.SaveAs(filePath2); FileUpload fu3 = (FileUpload)FormView1.FindControl("FileUpload3"); String filePath3 = Server.MapPath(@"~/Uploads/" + fu3.FileName); fu3.SaveAs(filePath3); FileUpload fu4 = (FileUpload)FormView1.FindControl("FileUpload4"); String filePath4 = Server.MapPath(@"~/Uploads/" + fu4.FileName); fu4.SaveAs(filePath4); FileUpload fu5 = (FileUpload)FormView1.FindControl("FileUpload5"); String filePath5 = Server.MapPath(@"~/Uploads/" + fu5.FileName); fu5.SaveAs(filePath5); }
/// <summary> /// Evento che avviene dopo aver eseguito L'inserimento /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void FormViewCliente_ItemInserted(object sender, FormViewInsertedEventArgs e) { //LabelException.Text = e.Exception.Message; Response.Redirect("~/Vendite/OpportunitàList.aspx"); }
protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e) { DonePanel.Visible = true; MessagePanel.Visible = false; }
protected void FormViewBlog_ItemInserted(object sender, FormViewInsertedEventArgs e) { Response.Redirect("~/View/Pages/Admin/Admin.aspx"); }
protected void formViewBookCreate_ItemInserted(object sender, FormViewInsertedEventArgs e) { Response.Redirect("~/Admin/BookIndex"); }
protected void fmvContainer_ItemInserted(object sender, FormViewInsertedEventArgs e) { //string _newid = e.Values["ContainerID"].ToString(); 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 FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e) { Response.Write("<script>window.opener.location.reload();</script>"); }
protected void ItemInserted_FVattivita(object sender, FormViewInsertedEventArgs e) { Response.Redirect("activity_lookup_list.aspx"); }
protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e) { Response.Redirect("TipoBachillerato.aspx"); }
protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e) { Response.Redirect("~/EditareMostre.aspx"); }
/// <summary> Event handler. Called by FormView1 for item inserted events. </summary> /// /// <remarks> Mat, 2011-01-25. </remarks> /// /// <param name="sender"> Source of the event. </param> /// <param name="e"> Form view inserted event information. </param> protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e) { this.MultiView1.ActiveViewIndex = 3; }
protected void FvOutward_ItemInserted(object sender, FormViewInsertedEventArgs e) { gvOutWardDetails.DataBind(); }
void SEA_Storage1_StorageSaved(object sender, FormViewInsertedEventArgs e) { }
protected void frmAdicionar_ItemInserted(object sender, FormViewInsertedEventArgs e) { grdCategorias.DataBind(); }
protected void fvVendorDetails_ItemInserted1(object sender, FormViewInsertedEventArgs e) { mvLicApp.SetActiveView(mvLicApp.Views[1]); txtApplicationNo.Text = ""; }
protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e) { //新增后,切换为浏览模式 ChangeViewMode(); }
protected void FVRefundApplication_ItemInserted(object sender, FormViewInsertedEventArgs e) { //gvRefundStampDetails.Visible=false; //lblActApplicable.Visible=false; //chkLstBx.Visible=false; // TxtActRemarks.Visible=false; // btnAddStamp.Visible=false; // btnUpdateStamp.Visible=false; // txtStampsNumbers.Visible=false; // lblStampsSerielNo.Visible=false; // txtStampsNumbers.Visible=false; // TxtReturnedQty.Visible=false; // dlRevenueStampId.Visible = false; // TxtReturnedQty.Visible = false; // lblStampQuantity.Visible = false; // gvRefundStampDetails.Visible = false; // lblAddStampDetails.Visible = false; // lblAppliedActs.Visible = false; // lblStampType.Visible = false; // lblAppliedActsRemarks.Visible = false; //string TxtTotalValueOfStamps = ((TextBox) FVRefundApplication.FindControl("TxtTotalValueOfStamps")).Text; }
protected void fvInserted(object sender, FormViewInsertedEventArgs e) { gvChatLog.DataBind(); }
protected void AccountFormView_ItemInserted(object sender, FormViewInsertedEventArgs e) { //Response.Write("<script>window.opener.location.reload();window.close();</script>"); //Response.End(); }
protected void update(object sender, FormViewInsertedEventArgs e) { GridView2.DataBind(); }
protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e) { Response.Redirect("prodDetails.aspx?product_id=" + Request.QueryString["product_id"]); }
protected void fvVendorDetails_ItemInserted1(object sender, FormViewInsertedEventArgs e) { mvLicApp.SetActiveView(mvLicApp.Views[0]); txtApplicationNo.Text = ""; if (e.Exception == null) { ((IGRSS_Default)this.Master).ShowStatusMessage(Status_Messages.SaveSucess, Status_Messages.SaveSucessDescription, MessageType.Success); } else { ((IGRSS_Default)this.Master).ShowStatusMessage(Status_Messages.SaveFailed, e.Exception.Message, MessageType.Error); } }
protected void addSupplierForm_ItemInserted(object sender, FormViewInsertedEventArgs e) { Response.Redirect("~/pages/admin/supplieredit.aspx"); }
protected void FvInspectionIternary_ItemInserted(object sender, FormViewInsertedEventArgs e) { GvInspectionIternaryIns.DataBind(); }
protected void attractionsForm_ItemInserted(object sender, FormViewInsertedEventArgs e) { { Response.RedirectToRoute("TouristAttraction"); } }
protected void addUserForm_ItemInserted(object sender, FormViewInsertedEventArgs e) { Response.Redirect("~/UsersList"); }
protected void InsertedRec(object sender, FormViewInsertedEventArgs e) { ListBox1.DataBind(); }
protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e) { Response.Redirect("Carrera.aspx"); }
protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e) { }
// torna a lista principale dopo creazione protected void FVForm_ItemInserted(object sender, FormViewInsertedEventArgs e) { Response.Redirect("Calendario_list.aspx"); }
protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e) { Response.Redirect(Request.Url.ToString()); }
protected void frmAdicionar_ItemInserted(object sender, FormViewInsertedEventArgs e) { winAdicionar.Hide = true; salvarImagem(); }
protected void fvAgendamento_ItemInserted(object sender, FormViewInsertedEventArgs e) { Response.Redirect("./Default.aspx?success=QWdlbmRhbWVudG8gY2FkYXN0cmFkbyBjb20gc3VjZXNzby4="); }
protected void fvVendorDetails_ItemInserted(object sender, FormViewInsertedEventArgs e) { mvLicApp.SetActiveView(mvLicApp.Views[0]); fvVendorDetails.Controls.Clear(); }
protected void FvemployeeMaster_ItemInserted(object sender, FormViewInsertedEventArgs e) { }
//The following methods update the CustomersView GridView when an action is taken (update, insert or delete) protected void CustFormView_ItemInserted(object sender, FormViewInsertedEventArgs e) { CustomersView.DataBind(); }
protected void frmViewLocalizacao_ItemInserted(object sender, FormViewInsertedEventArgs e) { gvEstados.DataBind(); PanelEstados.Visible = true; PanelEstadoSeleccionado.Visible = false; btnAdicionar.Enabled=true; txtEstadoProcurar.Enabled = true; btnOK.Enabled = true; }
protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e) { GridView1.DataBind(); }
protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e) { Response.Write("<script>window.opener.location = window.opener.location;</script>"); Response.Write(string.Format("<script>window.location='MaterialInfo.aspx?MaterialCode={0}';</script>", e.Values["MaterialCode"].ToString())); //Response.Redirect(string.Format("<script>window.location=MaterialInfo.aspx?MaterialCode={0};</script>", e.Values["MaterialCode"].ToString())); }
protected void FormView_worksheet_ItemInserted(object sender, FormViewInsertedEventArgs e) { GridView_worksheet.DataBind(); }
protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e) { this.RefreshParentPage(); }