Ejemplo n.º 1
0
 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");
 }
Ejemplo n.º 2
0
 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);
    }
Ejemplo n.º 4
0
 protected void FormView_Inward_ItemInserted(object sender, FormViewInsertedEventArgs e)
 {
     if (Page.IsValid)
     {
         if (e.AffectedRows > 0)
         {
             mvInward.SetActiveView(vieGrid);
         }
     }
 }
Ejemplo n.º 5
0
 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);
     }
 }
Ejemplo n.º 6
0
 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;
     }
 }
Ejemplo n.º 7
0
    /// <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;
        }
    }
Ejemplo n.º 8
0
 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();
     }
 }
Ejemplo n.º 9
0
    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);
        }
    }
Ejemplo n.º 10
0
    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);
        }
    }
Ejemplo n.º 11
0
 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();
     }
 }
Ejemplo n.º 12
0
 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();
     }
 }
Ejemplo n.º 13
0
 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);
         }
     }
 }
Ejemplo n.º 14
0
    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;

        }
    }
Ejemplo n.º 15
0
    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");
 }
Ejemplo n.º 17
0
 protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e)
 {
     DonePanel.Visible = true;
     MessagePanel.Visible = false;
 }
Ejemplo n.º 18
0
 protected void FormViewBlog_ItemInserted(object sender, FormViewInsertedEventArgs e)
 {
     Response.Redirect("~/View/Pages/Admin/Admin.aspx");
 }
Ejemplo n.º 19
0
 protected void formViewBookCreate_ItemInserted(object sender, FormViewInsertedEventArgs e)
 {
     Response.Redirect("~/Admin/BookIndex");
 }
Ejemplo n.º 20
0
   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);
       }
   }
Ejemplo n.º 21
0
 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");
 }
Ejemplo n.º 23
0
 protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e)
 {
     Response.Redirect("TipoBachillerato.aspx");
 }
Ejemplo n.º 24
0
 protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e)
 {
     Response.Redirect("~/EditareMostre.aspx");
 }
Ejemplo n.º 25
0
    /// <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;
    }
Ejemplo n.º 26
0
 protected void FvOutward_ItemInserted(object sender, FormViewInsertedEventArgs e)
 {
     gvOutWardDetails.DataBind();
 }
Ejemplo n.º 27
0
 void SEA_Storage1_StorageSaved(object sender, FormViewInsertedEventArgs e)
 {
 }
Ejemplo n.º 28
0
 protected void frmAdicionar_ItemInserted(object sender, FormViewInsertedEventArgs e)
 {
     grdCategorias.DataBind();
 }
Ejemplo n.º 29
0
 protected void fvVendorDetails_ItemInserted1(object sender, FormViewInsertedEventArgs e)
 {
     mvLicApp.SetActiveView(mvLicApp.Views[1]);
     txtApplicationNo.Text = "";
 }
Ejemplo n.º 30
0
 protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e)
 {
     //新增后,切换为浏览模式
     ChangeViewMode();
 }
Ejemplo n.º 31
0
    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;
    }
Ejemplo n.º 32
0
 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();
 }
Ejemplo n.º 34
0
 protected void update(object sender, FormViewInsertedEventArgs e)
 {
     GridView2.DataBind();
 }
Ejemplo n.º 35
0
 protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e)
 {
     Response.Redirect("prodDetails.aspx?product_id=" + Request.QueryString["product_id"]);
 }
Ejemplo n.º 36
0
 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);
     }
 }
Ejemplo n.º 37
0
 protected void addSupplierForm_ItemInserted(object sender, FormViewInsertedEventArgs e)
 {
     Response.Redirect("~/pages/admin/supplieredit.aspx");
 }
Ejemplo n.º 38
0
 protected void FvInspectionIternary_ItemInserted(object sender, FormViewInsertedEventArgs e)
 {
     GvInspectionIternaryIns.DataBind();
 }
Ejemplo n.º 39
0
 protected void attractionsForm_ItemInserted(object sender, FormViewInsertedEventArgs e)
 {
     {
         Response.RedirectToRoute("TouristAttraction");
     }
 }
Ejemplo n.º 40
0
 protected void addUserForm_ItemInserted(object sender, FormViewInsertedEventArgs e)
 {
     Response.Redirect("~/UsersList");
 }
Ejemplo n.º 41
0
 protected void InsertedRec(object sender, FormViewInsertedEventArgs e)
 {
     ListBox1.DataBind();
 }
Ejemplo n.º 42
0
 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");
 }
Ejemplo n.º 45
0
 protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e)
 {
 }
Ejemplo n.º 46
0
 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();
    }
Ejemplo n.º 48
0
 protected void fvAgendamento_ItemInserted(object sender, FormViewInsertedEventArgs e)
 {
     Response.Redirect("./Default.aspx?success=QWdlbmRhbWVudG8gY2FkYXN0cmFkbyBjb20gc3VjZXNzby4=");
 }
Ejemplo n.º 49
0
 protected void fvVendorDetails_ItemInserted(object sender, FormViewInsertedEventArgs e)
 {
     mvLicApp.SetActiveView(mvLicApp.Views[0]);
     fvVendorDetails.Controls.Clear();
 }
Ejemplo n.º 50
0
 protected void FvemployeeMaster_ItemInserted(object sender, FormViewInsertedEventArgs e)
 {
 }
Ejemplo n.º 51
0
 protected void FvOutward_ItemInserted(object sender, FormViewInsertedEventArgs e)
 {
     gvOutWardDetails.DataBind();
 }
Ejemplo n.º 52
0
 protected void fvVendorDetails_ItemInserted(object sender, FormViewInsertedEventArgs e)
 {
     mvLicApp.SetActiveView(mvLicApp.Views[0]);
     fvVendorDetails.Controls.Clear();
 }
Ejemplo n.º 53
0
 //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();
 }
Ejemplo n.º 54
0
 protected void fvVendorDetails_ItemInserted1(object sender, FormViewInsertedEventArgs e)
 {
     mvLicApp.SetActiveView(mvLicApp.Views[1]);
     txtApplicationNo.Text = "";
 }
Ejemplo n.º 55
0
 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;
 }
Ejemplo n.º 56
0
 protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e)
 {
     GridView1.DataBind();
 }
Ejemplo n.º 57
0
 protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e)
 {
     GridView1.DataBind();
 }
Ejemplo n.º 58
0
 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()));
 }
Ejemplo n.º 59
0
 protected void FormView_worksheet_ItemInserted(object sender, FormViewInsertedEventArgs e)
 {
     GridView_worksheet.DataBind();
 }
Ejemplo n.º 60
0
 protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e)
 {
     this.RefreshParentPage();
 }