本文整理汇总了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");
}
示例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;
}
}
示例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);
}
示例4: FormView_Inward_ItemInserted
protected void FormView_Inward_ItemInserted(object sender, FormViewInsertedEventArgs e)
{
if (Page.IsValid)
{
if (e.AffectedRows > 0)
{
mvInward.SetActiveView(vieGrid);
}
}
}
示例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);
}
}
示例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;
}
}
示例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;
}
}
示例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);
}
}
示例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();
}
}
示例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);
}
}
示例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();
}
}
示例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();
}
}
示例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);
}
}
}
示例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;
}
}
示例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);
}