Пример #1
0
        protected void btnSubmit_click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                string strFullName     = txtFullName.Text;
                string strPostCode     = txtPostCode.Text;
                string strPhoneNumber  = txtPhoneNumber.Text;
                string strEmailAddress = txtEmailAddress.Text;
                string strCarDetails   = txtCarDetails.InnerText;
                string strBudget       = txtBudget.Text;
                string strFinance      = txtFinance.Text;

                if (BAL_CarSourcing.InsertUpdateDeleteCarSourcing("insert", 0, strFullName, strPostCode, strPhoneNumber, strEmailAddress, strCarDetails, strBudget, strFinance, true, false))
                {
                    lblMessage.Text = "Thank you for sending us your enquiry. We endeavour to reply to your enquiry as soon as possible";
                    clearOutput();
                    //Response.Redirect("Thanks.aspx");
                }
            }
        }
Пример #2
0
        private void FillGrid()
        {
            int TotalCount = 0;

            gvRulesList.PageIndex = gvIndex;
            DataTable table = BAL_CarSourcing.SelectCarSourcing("selectall", 0);

            gvRulesList.VirtualItemCount = TotalCount;
            gvRulesList.DataSource       = table;
            gvRulesList.DataBind();
            if (gvRulesList.Rows.Count > 0)
            {
                lblsearch2.Visible = true;
                ddlPerpage.Visible = true;
                lable123.Visible   = true;
            }
            else
            {
                lblsearch2.Visible = false;
                ddlPerpage.Visible = false;
                lable123.Visible   = false;
            }
        }