Example #1
0
        protected void FormView2_PageIndexChanging(object sender, FormViewPageEventArgs e)
        {
            if (TextBox2.Text.Trim() != "")
            {
                switch (DropDownList2.Text)
                {
                case "PatronID":
                    SqlDataSource2.SelectCommand = "SELECT * FROM PATRON WHERE(PATRONID LIKE '%' + @PERSONINPUT + '%')";
                    break;

                case "Name":
                    SqlDataSource2.SelectCommand = "SELECT * FROM PATRON WHERE(NAME LIKE '%' + @PERSONINPUT + '%')";
                    break;

                case "Gender":
                    SqlDataSource2.SelectCommand = "SELECT * FROM PATRON WHERE(GENDER LIKE '%' + @PERSONINPUT + '%')";
                    break;

                case "BirthDate":
                    SqlDataSource2.SelectCommand = "SELECT * FROM PATRON WHERE(BIRTHDATE LIKE '%' + @PERSONINPUT + '%')";
                    break;

                case "Type":
                    SqlDataSource2.SelectCommand = "SELECT * FROM PATRON WHERE(TYPE LIKE '%' + @PERSONINPUT + '%')";
                    break;

                case "Department":
                    SqlDataSource2.SelectCommand = "SELECT * FROM PATRON WHERE(DEPARTMENT LIKE '%' + @PERSONINPUT + '%')";
                    break;
                }
            }
        }
 protected void FormViewCustomer_PageIndexChanging(
     object sender, FormViewPageEventArgs e)
 {
     this.FormViewCustomer.PageIndex  = e.NewPageIndex;
     this.FormViewCustomer.DataSource = this.customers;
     this.FormViewCustomer.DataBind();
 }
Example #3
0
 protected void FormView1_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
     DataSourceSelectArguments ee = new DataSourceSelectArguments();
     DataView tmp = (DataView)this.SqlDataSource4.Select(ee);
     Response.Cookies["PapID"].Value = tmp[0][1].ToString();   //从sqldatasource获得列值
     Response.Redirect("Paper.aspx");
 }
Example #4
0
        protected void FormViewRecipes_PageIndexChanging(object sender, FormViewPageEventArgs e)
        {
            string a = b;

            FormViewRecipes.PageIndex = e.NewPageIndex;
            recipeSearch(a);
        }
Example #5
0
 protected void EmployeesFormView_PageIndexChanging(
     object sender, FormViewPageEventArgs e)
 {
     this.EmployeesFormView.PageIndex  = e.NewPageIndex;
     this.EmployeesFormView.DataSource = this.employees;
     this.EmployeesFormView.DataBind();
 }
Example #6
0
        // FormView.PageIndexChanging Event
        protected void fvPerson_PageIndexChanging(object sender, FormViewPageEventArgs e)
        {
            // Set the index of the new display page.
            fvPerson.PageIndex = e.NewPageIndex;

            // Rebind the FormView control to show data in the new page.
            BindFormView();
        }
Example #7
0
        // FormView.PageIndexChanging事件
        protected void fvPerson_PageIndexChanging(object sender, FormViewPageEventArgs e)
        {
            // 设定新显示页面的索引.
            fvPerson.PageIndex = e.NewPageIndex;

            // 重新绑定FormView控件,显示新页面的数据.
            BindFormView();
        }
Example #8
0
        protected void FormViewEmployees_PageIndexChanging(object sender, FormViewPageEventArgs e)
        {
            var employees = this.content.Employees.AsQueryable().ToArray();

            this.FormViewEmployees.PageIndex  = e.NewPageIndex;
            this.FormViewEmployees.DataSource = employees;
            this.FormViewEmployees.DataBind();
        }
        protected void EmployeesFromViewId_PageIndexChanging(object sender, FormViewPageEventArgs e)
        {
            this.EmployeesFromViewId.PageIndex = e.NewPageIndex;
            NorthwindEntities context = new NorthwindEntities();
            var emp = context.Employees.ToList();

            this.EmployeesFromViewId.DataSource = emp;
            this.EmployeesFromViewId.DataBind();
        }
        protected void FormView1_PageIndexChanging(object sender, FormViewPageEventArgs e)
        {
            FormView1.PageIndex = e.NewPageIndex;
            DataSet ds          = ObjData.Getlist();
            int     recordCount = ObjData.GetOrdersCount();

            DeluxePager1.RecordCount = recordCount;
            FormView1.DataSource     = ds;
            FormView1.DataBind();
        }
 protected void FvDeviationDetails_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
     try
     {
         FvObjectionDetails.PageIndex = e.NewPageIndex;
         DataTable DT = new DataTable();
         DT = (DataTable)ViewState["dt"];
         FvObjectionDetails.DataSource = DT;
         FvObjectionDetails.DataBind();
     }
     catch (Exception ex)
     {
         throw;
     }
 }
Example #12
0
        protected void FormView1_PageIndexChanging(object sender, FormViewPageEventArgs e)
        {
            if (TextBox1.Text.Trim() != "")
            {
                switch (DropDownList1.Text)
                {
                case "CallNo":
                    SqlDataSource1.SelectCommand = "SELECT * FROM BOOK WHERE(CALLNO LIKE '%' + @BOOKINPUT + '%')";
                    break;

                case "Title":
                    SqlDataSource1.SelectCommand = "SELECT * FROM BOOK WHERE(TITLE LIKE '%' + @BOOKINPUT + '%')";
                    break;

                case "Author":
                    SqlDataSource1.SelectCommand = "SELECT * FROM BOOK WHERE(AUTHOR LIKE '%' + @BOOKINPUT + '%')";
                    break;

                case "Publisher":
                    SqlDataSource1.SelectCommand = "SELECT * FROM BOOK WHERE(PUBLISHER LIKE '%' + @BOOKINPUT + '%')";
                    break;

                case "ISBN":
                    SqlDataSource1.SelectCommand = "SELECT * FROM BOOK WHERE(ISBN LIKE '%' + @BOOKINPUT + '%')";
                    break;

                case "PubDate":
                    SqlDataSource1.SelectCommand = "SELECT * FROM BOOK WHERE(PUBDATE LIKE '%' + @BOOKINPUT + '%')";
                    break;

                case "Pages":
                    SqlDataSource1.SelectCommand = "SELECT * FROM BOOK WHERE(PAGES LIKE '%' + @BOOKINPUT + '%')";
                    break;

                case "Price":
                    SqlDataSource1.SelectCommand = "SELECT * FROM BOOK WHERE(PRICE LIKE '%' + @BOOKINPUT + '%')";
                    break;

                case "Number":
                    SqlDataSource1.SelectCommand = "SELECT * FROM BOOK WHERE(NUMBER LIKE '%' + @BOOKINPUT + '%')";
                    break;

                case "AvailableNumber":
                    SqlDataSource1.SelectCommand = "SELECT * FROM BOOK WHERE(AVAILABLENUMBER LIKE '%' + @BOOKINPUT + '%')";
                    break;
                }
            }
        }
Example #13
0
 protected void subjectFV_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
     subjectFV.PageIndex = e.NewPageIndex;
     BindGrid();
 }
 protected void ApplicantFormView_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
     ApplicantFormView.PageIndex = e.NewPageIndex;
     BindApplicantFV();
 }
Example #15
0
 protected void FormView1_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
     //XmlDocument xdoc = XmlDataSource3.GetXmlDocument();
     //XmlElement image = xdoc.SelectSingleNode("channel/image/url[url='" + e.NewValues["url"].ToString() + "']") as XmlElement;
     //image.Attributes["url"].Value = e.NewValues["url"].ToString();
 }
Example #16
0
        /// <summary>
        /// 获取绑定分页控件对应控件的翻页事件Args
        /// </summary>
        /// <param name="controlMode"></param>
        /// <param name="eventName"></param>
        /// <param name="commandSource"></param>
        /// <param name="newPageIndex"></param>
        /// <returns></returns>
        /// <remarks>
        /// 获取绑定分页控件对应控件的翻页事件Args
        /// </remarks>
        public object GetPageEventArgs(DataListControlType controlMode, string eventName, object commandSource, int newPageIndex)
        {
            object obj = null;

            switch (controlMode)
            {
            case DataListControlType.GridView:
                switch (eventName)
                {
                case "EventPageIndexChanged":
                    EventArgs gvEventArgs = new EventArgs();
                    obj = (object)gvEventArgs;
                    break;

                case "EventPageIndexChanging":
                    GridViewPageEventArgs gridViewEventArgs = new GridViewPageEventArgs(newPageIndex);
                    obj = (object)gridViewEventArgs;
                    break;
                }

                break;

            case DataListControlType.DeluxeGrid:
                switch (eventName)
                {
                case "EventPageIndexChanged":
                    EventArgs gvEventArgs = new EventArgs();
                    obj = (object)gvEventArgs;
                    break;

                case "EventPageIndexChanging":
                    GridViewPageEventArgs gridViewEventArgs = new GridViewPageEventArgs(newPageIndex);
                    obj = (object)gridViewEventArgs;
                    break;
                }

                break;

            case DataListControlType.DetailsView:
                //DetailsViewPageEventArgs detailsViewEventArgs = new DetailsViewPageEventArgs(newPageIndex);
                //obj = (object)detailsViewEventArgs;
                switch (eventName)
                {
                case "EventPageIndexChanged":
                    EventArgs detailsViewEventArgs = new EventArgs();
                    obj = (object)detailsViewEventArgs;
                    break;

                case "EventPageIndexChanging":
                    DetailsViewPageEventArgs dvEventArgs = new DetailsViewPageEventArgs(newPageIndex);
                    obj = (object)dvEventArgs;
                    break;
                }

                break;

            case DataListControlType.FormView:
                //DetailsViewPageEventArgs detailsViewEventArgs = new DetailsViewPageEventArgs(newPageIndex);
                //obj = (object)detailsViewEventArgs;
                switch (eventName)
                {
                case "EventPageIndexChanged":
                    EventArgs formViewEventArgs = new EventArgs();
                    obj = (object)formViewEventArgs;
                    break;

                case "EventPageIndexChanging":
                    FormViewPageEventArgs fvEventArgs = new FormViewPageEventArgs(newPageIndex);
                    obj = (object)fvEventArgs;
                    break;
                }

                break;

            case DataListControlType.DataGrid:
                DataGridPageChangedEventArgs dataGridEventArgs = new DataGridPageChangedEventArgs(commandSource, newPageIndex);
                obj = (object)dataGridEventArgs;

                break;
            }
            return(obj);
        }
 protected void FView_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
     FView.PageIndex = e.NewPageIndex;
     Bind();
 }
 //protected void btnCalculate_Click(object sender, EventArgs e)
 //{
 //    TextBox txtInternalElectrification = (TextBox) fvStampDutyCalculation.FindControl("txtInternalElectrification");
 //    TextBox txtDevelopmentFeeRate = (TextBox) fvStampDutyCalculation.FindControl("txtDevelopmentFeeRate");
 //    TextBox txtOtherFeeRate = (TextBox) fvStampDutyCalculation.FindControl("txtOtherFeeRate");
 //    TextBox txtSpecialDeduction = (TextBox) fvStampDutyCalculation.FindControl("txtSpecialDeduction");
 //    string InternalElectrificationVal=txtInternalElectrification.Text;
 //    string txtDevelopmentFeeRateVal = txtDevelopmentFeeRate.Text;
 //    string txtOtherFeeRateVal=txtOtherFeeRate.Text;
 //    string txtSpecialDeductionVal=txtSpecialDeduction.Text;
 //    Session.Add(InternalElectrificationVal, InternalElectrificationVal);
 //    Session.Add(txtDevelopmentFeeRateVal, txtDevelopmentFeeRateVal);
 //    Session.Add(txtOtherFeeRateVal, txtOtherFeeRateVal);
 //    Session.Add(txtSpecialDeductionVal, txtSpecialDeductionVal);
 //}
 protected void fvValuationResult_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
 }
 protected void fvHighCourtDetails_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
 }
 protected void fvLicenseNoDtl_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
 }
 protected void FvRegistration_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
 }
Example #22
0
 protected void fvStampDutyCalculation_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
     ((FormView) sender).ChangeMode(FormViewMode.ReadOnly);
 }
 protected void fvRefundApplication_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
 }
Example #24
0
 protected void fvAddItem_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
 }
 protected void FvYearlySchedule_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
 }
 protected void fvStampDutyCalculation_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
 }
Example #27
0
 protected void fvStampDutyCalculation_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
     ((FormView)sender).ChangeMode(FormViewMode.ReadOnly);
 }
Example #28
0
 protected void FormView_Product_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
     // this event was recreated but is not handled
 }
 protected void FormView4_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
     //Label EmailLabel1 = FormView4.FindControl("EmailLabel1") as Label;
 }
Example #30
0
 protected void fvVendorDetails_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
 }
 protected void EditButton(object sender, FormViewPageEventArgs e)
 {
     LitProductUpdateResult.Text = "New product has been updated!";
 }
Example #32
0
 protected void ResourceView_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
 }
Example #33
0
 protected void fvAddProduct_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
     Response.Redirect("~/ViewGallery.aspx");
 }
 protected void FormViewAdminProductDetails_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
 }
 protected void FvInward_PageIndexChanging1(object sender, FormViewPageEventArgs e)
 {
 }
 protected void fvVendorDetails_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
 }
 protected void fvReadOnly_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
 }
 protected void FVRefundApplication_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
     string TxtTotalValueOfStamps = ((TextBox) FVRefundApplication.FindControl("TxtTotalValueOfStamps")).Text;
 }
Example #39
0
 protected void fvPurchaseReadOnly_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
     MvPurchase.SetActiveView(MvPurchase.Views[2]);
     //fvPurchaseReadOnly.ChangeMode(FormViewMode.ReadOnly);
 }
 protected void DeleteButton(object sender, FormViewPageEventArgs e)
 {
     LitProductDeleteResult.Text = "New product has been deleted!";
 }
Example #41
0
 protected void FormView1_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
     ((TextBox)FormView1.FindControl("txtname")).Text = "";
     ((TextBox)FormView1.FindControl("txtDescription")).Text = "";
 }
 protected void FormView1_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
 }
Example #43
0
 protected void bookDetail_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
     Response.Redirect("~/index.aspx");
 }
 protected void FormView1_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
     FormView1.PageIndex = e.NewPageIndex;
     Continue();
 }
 protected void FormView2_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
     FormView2.PageIndex = e.NewPageIndex;
     FormView2ContinuePaging();
 }
Example #46
0
 protected void FormView1_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
 }
Example #47
0
 protected void ImagesView_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
     ImagesView.PageIndex = e.NewPageIndex;
     ImagesView.DataSource = ImagesUrl;
     ImagesView.DataBind();
 }