• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# FormViewInsertedEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: FormView_worksheet_ItemInserted

 protected void FormView_worksheet_ItemInserted(object sender, FormViewInsertedEventArgs e)
 {
     GridView_worksheet.DataBind();
 }
开发者ID:UrviGandhi,项目名称:IGRSS,代码行数:4,代码来源:WorkSheetRegister.aspx.cs


示例17: fmvContainer_ItemInserted

   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);
       }
   }
开发者ID:Publiship,项目名称:WWI_CRM_folders,代码行数:16,代码来源:container.aspx.cs


示例18: FormView1_ItemInserted

 protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e)
 {
     GridView1.DataBind();
 }
开发者ID:kathygns,项目名称:citi-hust,代码行数:4,代码来源:DistributionFeedback.aspx.cs


示例19: frmViewLocalizacao_ItemInserted

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


示例20: CustFormView_ItemInserted

 //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();
 }
开发者ID:dwalters423,项目名称:SalesApplication,代码行数:5,代码来源:Customers.aspx.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# FormWindowState类代码示例发布时间:2022-05-24
下一篇:
C# FormViewInsertEventArgs类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap