本文整理汇总了C#中System.Web.UI.WebControls.FormViewInsertedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# FormViewInsertedEventArgs类的具体用法?C# FormViewInsertedEventArgs怎么用?C# FormViewInsertedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FormViewInsertedEventArgs类属于System.Web.UI.WebControls命名空间,在下文中一共展示了FormViewInsertedEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: contactInsert
protected void contactInsert(object sender, FormViewInsertedEventArgs e)
{
if (e.AffectedRows == 1)
{
Response.Redirect("index.aspx");
}
}
开发者ID:ahmedengu,项目名称:Simple-ASP.NET-Website,代码行数:7,代码来源:contact.aspx.cs
示例2: uxFormView_ItemInserted
protected void uxFormView_ItemInserted(object sender, FormViewInsertedEventArgs e)
{
////get user id
//MembershipUser usr = Membership.GetUser();
//Guid uid = (Guid)usr.ProviderUserKey;
////setup database connection
//SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["DB_MYCHURCH"].ConnectionString);
////setup a way to talk to the database
//SqlCommand command = new SqlCommand();
//command.Connection = connection;
//try
//{
// command.Connection.Open();
// command.CommandType = CommandType.StoredProcedure;
// command.CommandText = "ChurchWorkers_Insert";
// command.Parameters.Add(new SqlParameter("@UserId", uid));
// command.ExecuteNonQuery();
//}
//catch
//{
//}
//finally
//{
// command.Connection.Close();
//}
}
开发者ID:Deliv3rat0r,项目名称:SeniorProject,代码行数:34,代码来源:Worker.aspx.cs
示例3: FormViewTipoCampi_ItemInserted
protected void FormViewTipoCampi_ItemInserted(object sender, FormViewInsertedEventArgs e)
{
if (e.Exception == null)
Response.Redirect(lblPreviousPage.Text);
else
lblError.Text = e.Exception.Message;
}
开发者ID:PaoloMisson,项目名称:GATEvolution,代码行数:7,代码来源:RefertiConfigurationCampi.aspx.cs
示例4: formView_ItemInserted
protected void formView_ItemInserted(object sender, FormViewInsertedEventArgs e)
{
if (e.Exception == null)
{
Response.Redirect(string.Format("~/UI/ShipperDetailForm.aspx?id={0}", _lazyItem.Reference.ShipperID));
}
}
开发者ID:smartinz,项目名称:randomhacking,代码行数:7,代码来源:ShipperDetailForm.aspx.cs
示例5: FormView1_ItemInserted
protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e)
{
if (e.Exception == null || e.ExceptionHandled)
{
Response.Redirect(table.ListActionPath);
}
}
开发者ID:anurse,项目名称:ReviewR,代码行数:7,代码来源:Insert.aspx.cs
示例6: attractionsForm_ItemInserted
protected void attractionsForm_ItemInserted(object sender, FormViewInsertedEventArgs e)
{
{
Response.Redirect("~/WebForms");
}
}
开发者ID:ArthurYiL,项目名称:ASP.NET-MVC-and-DbGeography,代码行数:7,代码来源:Create.aspx.cs
示例7: FormViewTipo_ItemInserted
protected void FormViewTipo_ItemInserted(object sender, FormViewInsertedEventArgs e)
{
string sIDFormTipo = ReturnMaxValueTable("FormTipo", "IDFormTipo", new SqlConnection(SqlDataSourceGat2.ConnectionString)).ToString();
Response.Redirect("~/RefertiConfiguration.aspx?IDFormTipo=" + sIDFormTipo);
}
开发者ID:PaoloMisson,项目名称:GATEvolution,代码行数:8,代码来源:RefertiConfiguration.aspx.cs
示例8: regInsert
protected void regInsert(object sender, FormViewInsertedEventArgs e)
{
if (e.AffectedRows == 1)
{
Session["user"] = e.Values["name"];
Response.Redirect("index.aspx");
}
}
开发者ID:ahmedengu,项目名称:Simple-ASP.NET-Website,代码行数:9,代码来源:register.aspx.cs
示例9: FormView1_ItemInserted
protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e)
{
GridView1.DataBind();
btneditar.Visible = false;
btneliminar.Visible = false;
}
开发者ID:Phate339,项目名称:eng.soft.2,代码行数:9,代码来源:Gerir.aspx.cs
示例10: FormView2_ItemInserted1
protected void FormView2_ItemInserted1(object sender, FormViewInsertedEventArgs e)
{
FormView3.DataBind();
using (FinanceManagerDataContext db = new FinanceManagerDataContext())
{
Member _member = db.Members.FirstOrDefault(m => m.MemberId == Convert.ToInt32(Request.QueryString["mid"]));
//int investmentTypeID = ( db.Investments.FirstOrDefault(i => i.InvestmentID == Convert.ToInt32( Request.QueryString["InvId"])).InvestmentTypeId.Value);
//AccountType accType = db.AccountTypes.FirstOrDefault(a => a.DefaultInvestmentTypeID == investmentTypeID);
//withdrawal
List<AccountTypeFeature> aFeatures = _member.AccountType.AccountTypeFeatures.Where(a => a.CalculateOn == 2).ToList();
foreach (AccountTypeFeature item in aFeatures)
{
decimal valueToApply = 0;
if (item.IsPercentage.Value)
{
valueToApply = item.ValueToApply.Value / 100 * Convert.ToDecimal(Session["WithdrawnAmount"]);
}
else
{
valueToApply = item.ValueToApply.Value;
}
if (item.IsDeduction.Value) //is deduction
{
AppliedDeduction aDeduction = new AppliedDeduction();
aDeduction.CreatedBy = User.Identity.Name;
aDeduction.CreatedDate = DateTime.Now;
aDeduction.DeductionAmount = valueToApply;
aDeduction.InvestmentID = Convert.ToInt32(Request.QueryString["InvId"]);
//aDeduction.IsDeleted = false;
aDeduction.Rate = item.ValueToApply;
db.AppliedDeductions.InsertOnSubmit(aDeduction);
}
else //is addition
{
AppliedInterest aInterest = new AppliedInterest();
aInterest.CreatedBy = User.Identity.Name;
aInterest.CreatedDate = DateTime.Now;
aInterest.InterestAmount = valueToApply;
aInterest.InvestmentID = Convert.ToInt32(Request.QueryString["InvId"]);
//aDeduction.IsDeleted = false;
aInterest.Rate = item.ValueToApply;
db.AppliedInterests.InsertOnSubmit(aInterest);
}
db.SubmitChanges();
////AppliedAccountFeature aAccountFeature = new AppliedAccountFeature();
////aAccountFeature.InvestmentID = Convert.ToInt32(Request.QueryString["InvId"]);
////aAccountFeature.AccountNumber =
}
}
}
开发者ID:joelzeal,项目名称:loans-web-application,代码行数:54,代码来源:InvestmentWithdrawal.aspx.cs
示例11: FormViewAssistenza_ItemInserted
protected void FormViewAssistenza_ItemInserted(object sender, FormViewInsertedEventArgs e)
{
if (e.Exception == null)
{
if (GestioneCaricamentoCalendario())
Response.Redirect("~/Assistenze/AssistenzaListGroupSingolaZona.aspx");
}
else
{
lblError.Text = e.Exception.Message;
}
}
开发者ID:PaoloMisson,项目名称:GATEvolution,代码行数:12,代码来源:AssistenzaVisualizza.aspx.cs
示例12: FormView1_ItemInserted
protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e)
{
if(e.Exception != null)
{
System.Diagnostics.Debug.WriteLine("Need to handle the error.");
e.ExceptionHandled = true;
}
else
{
System.Diagnostics.Debug.WriteLine("That was fine");
}
}
开发者ID:digidol,项目名称:sem5640,代码行数:12,代码来源:Category.aspx.cs
示例13: FormView1_ItemInserted
protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e)
{
if (e.Exception == null || e.ExceptionHandled)
{
Response.Redirect(_table.ListActionPath);
}
else
{
ShowMessage(e.Exception);
e.ExceptionHandled = true;
}
}
开发者ID:jorik041,项目名称:X.DynamicData,代码行数:12,代码来源:Insert.aspx.cs
示例14: OnItemInserted
protected void OnItemInserted(object sender, FormViewInsertedEventArgs e)
{
if (e.Exception == null)
{
Utilities.WriteWindowClose();
}
else
{
Utilities.OnError(Page, false, e.Exception);
e.KeepInInsertMode = true;
e.ExceptionHandled = true;
}
}
开发者ID:modulexcite,项目名称:CodeFluent-Entities,代码行数:13,代码来源:ContactForm.aspx.cs
示例15: FormView1_ItemInserted
protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e)
{
//if (e.Exception == null || e.ExceptionHandled)
//{
// e.Values
// //Response.Write("Linking to: " + Request["linkto"]);
// Response.Redirect(table.GetActionPath("Details", DataItem));
// //Response.Redirect("Details.aspx?id=asdf");
//}
//else
//{
// ShowError(e.Exception.ToString());
//}
}
开发者ID:weavver,项目名称:weavver,代码行数:14,代码来源:Insert.aspx.cs
示例16: InsertPostForm_ItemInserted
protected void InsertPostForm_ItemInserted(object sender, FormViewInsertedEventArgs e)
{
if (e.Exception != null)
{
if (e.Exception.InnerException.GetType() == typeof(ApplicationException))
{
e.ExceptionHandled = true;
e.KeepInInsertMode = true;
errormessage.Text = e.Exception.InnerException.Message;
}
}
else
{
Response.Redirect("~/");
}
}
开发者ID:rustd,项目名称:ASPNET45-VS11,代码行数:16,代码来源:WebForm1.aspx.cs
示例17: FormView1_ItemInserted
protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e)
{
try {
if (e.Exception != null)
{
e.ExceptionHandled = true;
Response.Write("<script LANGUAGE='JavaScript' >alert('Error: Usuario Duplicado')</script>");
}
}
catch
{
}
}
开发者ID:julianja12,项目名称:Proyecto_Metodologias_Funlam_ClinicaWeb,代码行数:18,代码来源:Registro.aspx.cs
示例18: DoOnItemInserted
public void DoOnItemInserted (FormViewInsertedEventArgs e)
{
OnItemInserted (e);
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:4,代码来源:FormViewTest.cs
示例19: d_ItemInserted
static void d_ItemInserted (object sender, FormViewInsertedEventArgs e)
{
if (WebTest.CurrentTest.UserData == null) {
ArrayList list = new ArrayList ();
list.Add ("ItemInserted");
WebTest.CurrentTest.UserData = list;
}
else {
ArrayList list = WebTest.CurrentTest.UserData as ArrayList;
if (list == null)
throw new NullReferenceException ();
list.Add ("ItemInserted");
WebTest.CurrentTest.UserData = list;
}
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:15,代码来源:FormViewTest.cs
示例20: fv_ItemInserted
private void fv_ItemInserted (object sender, FormViewInsertedEventArgs e)
{
itemInserted = true;
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:4,代码来源:FormViewTest.cs
注:本文中的System.Web.UI.WebControls.FormViewInsertedEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论