本文整理匯總了C#中System.Web.UI.WebControls.FormViewUpdatedEventArgs類的典型用法代碼示例。如果您正苦於以下問題:C# FormViewUpdatedEventArgs類的具體用法?C# FormViewUpdatedEventArgs怎麽用?C# FormViewUpdatedEventArgs使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
FormViewUpdatedEventArgs類屬於System.Web.UI.WebControls命名空間,在下文中一共展示了FormViewUpdatedEventArgs類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: FormView1_ItemUpdated
protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
{
if (e.Exception == null || e.ExceptionHandled)
{
Response.Redirect(table.ListActionPath);
}
}
示例2: FormView1_ItemUpdated
protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
{
GridView1.DataBind();
btneditar.Visible = false;
btneliminar.Visible = false;
}
示例3: FormView1_ItemUpdated
protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
{
if (e.Exception == null || e.ExceptionHandled)
{
Response.Redirect(_table.ListActionPath);
}
else
{
ShowMessage(e.Exception);
e.ExceptionHandled = true;
}
}
示例4: FormView1_ItemUpdated
//-------------------------------------------------------------------------------------------
protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
{
if (e.Exception == null || e.ExceptionHandled)
{
FormView1.DataBind();
ShowError("Hellow");
string redirectUrl = table.GetActionPath("Details", FormView1.DataItem);
Response.Redirect(redirectUrl);
//ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "temp", "<script type='text/javascript'>showMessage('Item Saved!', '" + redirectUrl + "');</script>", false);
}
}
示例5: OnItemUpdated
protected void OnItemUpdated(object sender, FormViewUpdatedEventArgs e)
{
if (e.Exception == null)
{
Utilities.WriteWindowClose();
}
else
{
Utilities.OnError(Page, false, e.Exception);
e.KeepInEditMode = true;
e.ExceptionHandled = true;
}
}
示例6: fvProject_ItemUpdated
protected void fvProject_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
{
//TODO: After update show message
if (e.Exception == null)
{
Literal lbl = this.fvProject.FindControl("lblUpdateResult") as Literal;
if (lbl != null)
{
lbl.Visible=true;
}
ViewState["Time"] = 1;
this.Timer1.Enabled = true;
}
}
示例7: FormViewAssistenza_ItemUpdated
protected void FormViewAssistenza_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
{
if (GestioneCaricamentoCalendario())
{
if (!(e.Exception == null))
{
e.ExceptionHandled = true;
}
//Se il cliente appartiene ad un fornitore gli invio una mail, se ha richiesto il servizio.
//if (Assistenza.SpedizioneMailAssistenzaAfornitore(this.Request.QueryString["IDAss"].ToString(), SqlDataSourceAssistenza.ConnectionString)) ;
Utility.AllertMessage(this.Page, "E' stato inviato Via EMAIL UN Messaggio di informazioni AL Fornitore per la richiesta del cliente", "ForRicMailSend");
Response.Redirect("~/Assistenze/AssistenzaListGroupSingolaZona.aspx");
}
}
示例8: attractionsForm_ItemUpdated
protected void attractionsForm_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
{
Response.Redirect("~/WebForms");
}
示例9: FormView3_ItemUpdated
protected void FormView3_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
{
this.GridView2.DataBind();
}
示例10: HospitalFormView_ItemUpdated
protected void HospitalFormView_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
{
Response.Redirect("~/hospital.aspx");
}
示例11: fvEngLotCardAdd_ItemUpdated
protected void fvEngLotCardAdd_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
{
//當前id號
Int64 id = Convert.ToInt64(e.Keys[0]);
//調用過程執行跳轉
JumpToUrlById(id);
}
示例12: fvEmployeesAdd_ItemUpdated
protected void fvEmployeesAdd_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
{
//更新了至少一條數據
if (e.AffectedRows > 1)
{
//當前id號
int id = Convert.ToInt32(e.Keys[0]);
//調用過程執行跳轉
JumpToUrlById(id);
}
}
示例13: FormView1_ItemUpdated
//ItemUpdated Event Control
protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
{
Response.Redirect("~/doctor.aspx");
}
示例14: FormView1_ItemUpdated
protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
{
GridView1.DataBind();
}
示例15: d_ItemUpdated
static void d_ItemUpdated (object sender, FormViewUpdatedEventArgs e)
{
if (WebTest.CurrentTest.UserData == null) {
ArrayList list = new ArrayList ();
list.Add ("ItemUpdated");
WebTest.CurrentTest.UserData = list;
}
else {
ArrayList list = WebTest.CurrentTest.UserData as ArrayList;
if (list == null)
throw new NullReferenceException ();
list.Add ("ItemUpdated");
WebTest.CurrentTest.UserData = list;
}
}