Exemple #1
0
 protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
 {
     if (e.Exception == null || e.ExceptionHandled)
     {
         Response.Redirect(table.ListActionPath);
     }
 }
Exemple #2
0
        protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
        {


            GridView1.DataBind();

            btneditar.Visible = false;
            btneliminar.Visible = false;
        }
Exemple #3
0
        //-------------------------------------------------------------------------------------------
        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);
               }
        }
Exemple #4
0
 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;
     }
 }
		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;
            }
        }
 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;
     }
 }
        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");
            }
        }
Exemple #8
0
 protected void fvSelectedStaff_ItemUpdated(object sender, System.Web.UI.WebControls.FormViewUpdatedEventArgs e)
 {
     this.lblError.Text = "";
     if (e.Exception != null)
     {
         this.lblError.Text = "A database error has occurred.<br /<br />" + e.Exception.Message;
         e.ExceptionHandled = true;
     }
     else if (e.AffectedRows == 0)
     {
         this.lblError.Text = "Another user may have updated this customer. Try again";
     }
     else
     {
         ddlSupport.DataBind();
     }
 }
		protected void fvEditor_ItemUpdated(Object sender, FormViewUpdatedEventArgs e)
		{
			if (e.Exception != null)
			{
				lblError.Text = e.Exception.Message;
			}

			e.KeepInEditMode = true;
		}
 protected virtual new void OnItemUpdated(FormViewUpdatedEventArgs e)
 {
 }
		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;
			}
		}
 protected void attractionsForm_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
 {
     Response.Redirect("~/WebForms");
 }
 protected void FormView3_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
 {
     this.GridView2.DataBind();
 }
Exemple #14
0
 protected void fvEngLotCardAdd_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
 {
     //当前id号
     Int64 id = Convert.ToInt64(e.Keys[0]);
     //调用过程执行跳转
     JumpToUrlById(id);
 }
 protected void FormViewSoddisfazione_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
 {
     Response.Redirect("~/SoddisfazioneClientePrivate/SoddisfazioneClientiList.aspx");
 }
Exemple #16
0
		protected virtual void OnItemUpdated (FormViewUpdatedEventArgs e)
		{
			if (Events != null) {
				FormViewUpdatedEventHandler eh = (FormViewUpdatedEventHandler) Events [ItemUpdatedEvent];
				if (eh != null) eh (this, e);
			}
		}
 protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
 {
     Response.Redirect("~/medicalServiceGroup.aspx");
 }
Exemple #18
0
 protected void fvEmployeesAdd_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
 {
     //更新了至少一条数据
     if (e.AffectedRows > 1)
     {
         //当前id号
         int id = Convert.ToInt32(e.Keys[0]);
         //调用过程执行跳转
         JumpToUrlById(id);
     }
 }
        protected void FormViewStrumento_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
        {
            RicreaSession();

        }
        protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
        {
            sqlquery = "SELECT Schd.Schd_ID, Schd.SiteID, UN.Name, S.Sites, Schd.Status,Schd.VisitDate,"
                      + "S.City_or_location,s.City,s.Site_Address,s.State,Schd.NameID "
                     + "FROM Scheduling Schd JOIN UserNames UN "
                      + "	ON Schd.NameID = UN.NameID JOIN Sites s ON s.SiteID = Schd.SiteID WHERE UN.NameID ='" + Session["username"].ToString() + "'";

            DataTable dt = DBHelper.GetDataTable(sqlquery);
            Session["username"] = null;            
            grdview2.DataSource = dt;
            grdview2.DataBind();
        }
 protected void FVProgetto_ItemUpdated(Object sender, System.Web.UI.WebControls.FormViewUpdatedEventArgs e)
 {
     Response.Redirect("projects_lookup_list.aspx");
 }
 //ItemUpdated Event Control
 protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
 {
     Response.Redirect("~/doctor.aspx");
 }
 protected void HospitalFormView_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
 {
     Response.Redirect("~/hospital.aspx");
 }
Exemple #24
0
 protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
 {
     GridView1.DataBind();
 }
 protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
 {
     Response.Redirect("ScheduleDetails_new.aspx?sID=" + Request.QueryString["sID"] + "&isEdit=1");
 }
 protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
 {
     this.Response.Redirect("~\\Serviceman\\SheetDetail.aspx?id=" + e.OldValues["repairsheetid"].ToString());
 }
Exemple #27
0
 protected void fvUseWaterAdd_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
 {
     //更新了至少一条数据
     if (e.AffectedRows > 1)
     {
         //当前id号
         long id = Convert.ToInt64(e.Keys[0]);
         //调用过程执行跳转
         JumpToUrlById(id);
     }
 }
 protected void fvContractAppendixAdd_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
 {
     if (e.Exception != null)
     {
         throw e.Exception;
     }
     else
     {
         //检查用户提供的操作参数标识
         string strId = Request["id"];
         //当前id号
         Int64 id = Convert.ToInt64(strId);
         JumpToUrlById(id);
     }
 }
Exemple #29
0
        protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
        {



        }
Exemple #30
0
 /// <summary>
 /// 更新成功后, 重新绑定数据,默认选择第一个.
 /// </summary>
 protected void fvPersonDetails_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
 {
     gvPersonOverView.DataBind();
     gvPersonOverView.SelectedIndex = gvPersonOverView.SelectedRow.RowIndex;
 }
		private void fv_ItemUpdated (object sender, FormViewUpdatedEventArgs e)
		{
			itemUpdated = true;
		}
 protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
 {
     Response.Redirect(ViewState["PreviousPage"].ToString());
 }
			public void DoOnItemUpdated (FormViewUpdatedEventArgs e)
			{
				OnItemUpdated (e); 
			}
Exemple #34
0
 protected void FormView1_ItemUpdated(object sender, System.Web.UI.WebControls.FormViewUpdatedEventArgs e)
 {
     //更新後,切換為瀏覽模式
     ChangeViewMode();
 }