当前位置: 首页>>代码示例>>C#>>正文


C# FormViewInsertedEventArgs类代码示例

本文整理汇总了C#中FormViewInsertedEventArgs的典型用法代码示例。如果您正苦于以下问题:C# FormViewInsertedEventArgs类的具体用法?C# FormViewInsertedEventArgs怎么用?C# FormViewInsertedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


FormViewInsertedEventArgs类属于命名空间,在下文中一共展示了FormViewInsertedEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: FormView1_ItemInserted

 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");
 }
开发者ID:mueed1991,项目名称:VSWebProject,代码行数:7,代码来源:News.aspx.cs

示例2: formView_ItemInserted

 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;
     }
 }
开发者ID:garsiden,项目名称:Report-Generator,代码行数:8,代码来源:add.aspx.cs

示例3: FormView1_ItemInserted1

    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);
    }
开发者ID:PaoloMisson,项目名称:GATEvolution,代码行数:9,代码来源:RichiestaMateriale.aspx.cs

示例4: FormView_Inward_ItemInserted

 protected void FormView_Inward_ItemInserted(object sender, FormViewInsertedEventArgs e)
 {
     if (Page.IsValid)
     {
         if (e.AffectedRows > 0)
         {
             mvInward.SetActiveView(vieGrid);
         }
     }
 }
开发者ID:UrviGandhi,项目名称:IGRSS,代码行数:10,代码来源:InwardRegister.aspx.cs

示例5: FormView_SunavniRegister_ItemInserted

 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);
     }
 }
开发者ID:Siddhartha261,项目名称:IGRSS,代码行数:11,代码来源:SunavniRegister.aspx.cs

示例6: FormViewCliente_ItemInserted

    /// <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;
        }
    }
开发者ID:PaoloMisson,项目名称:GATEvolution,代码行数:17,代码来源:Cliente.aspx.cs

示例7: formViewEmployee_ItemInserted

 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;
     }
 }
开发者ID:shvro,项目名称:eisk,代码行数:12,代码来源:details-page.aspx.cs

示例8: fvSaleRegister_ItemInserted

    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);
        }
    }
开发者ID:UrviGandhi,项目名称:IGRSS,代码行数:13,代码来源:StatementOfSale.aspx.cs

示例9: FormViewCoberturasAplicables_ItemInserted

 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();
     }
 }
开发者ID:royriojas,项目名称:RGEN2,代码行数:13,代码来源:Coberturas.aspx.cs

示例10: FvVendorOffence_ItemInserted

    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);
        }
    }
开发者ID:UrviGandhi,项目名称:IGRSS,代码行数:14,代码来源:VendorOffence.aspx.cs

示例11: FormView1_ItemInserted

 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();
     }
 }
开发者ID:anneilb,项目名称:ce-dev,代码行数:15,代码来源:TechnicianMaintenance.aspx.cs

示例12: FormView1_ItemInserted

 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();
     }
 }
开发者ID:ndcunningham,项目名称:Utech-Imagine-Cup,代码行数:15,代码来源:Default.aspx.cs

示例13: formView_ItemInserted

 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);
         }
     }
 }
开发者ID:garsiden,项目名称:Report-Generator,代码行数:17,代码来源:new.aspx.cs

示例14: FormView1_ItemInserted

    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;

        }
    }
开发者ID:mueed1991,项目名称:VSWebProject,代码行数:17,代码来源:Create-new-page.aspx.cs

示例15: FormView1_ItemInserted

    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);
    }
开发者ID:mueed1991,项目名称:VSWebProject,代码行数:22,代码来源:Sliderimages.aspx.cs


注:本文中的FormViewInsertedEventArgs类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。