コード例 #1
0
        /// <summary>
        /// Set Grid Data source
        /// </summary>
        /// <param name="addRow"></param>
        /// <param name="deleteRow"></param>e
        private void SearchBind()
        {
            string      districtName   = txtSearchDistrictName.Text.Trim();
            DistrictBLL objDistrictBLL = new DistrictBLL();

            grdDistrict.DataSource = objDistrictBLL.SearchDistrict(districtName);
            grdDistrict.DataBind();
        }
コード例 #2
0
        /// <summary>
        /// To display details on click of button
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>

        protected void btnSearch_Click(object sender, EventArgs e)
        {
            string      districtName   = txtSearchDistrictName.Text.Trim();
            DistrictBLL objDistrictBLL = new DistrictBLL();

            grdDistrict.DataSource = objDistrictBLL.SearchDistrict(districtName);
            grdDistrict.DataBind();
        }