Пример #1
0
        protected void lvCountry_PagePropertiesChanging(object sender, PagePropertiesChangingEventArgs e)
        {
            lblError.Text      = string.Empty;
            lblError.Visible   = false;
            lblSave.Text       = string.Empty;
            lblSave.Visible    = false;
            lblMessage.Visible = false;
            lblMessage.Text    = string.Empty;

            PagerRow.SetPageProperties(e.StartRowIndex, e.MaximumRows, false);
            DoBind();
        }
Пример #2
0
 protected void btnSearch_Click(object sender, ImageClickEventArgs e)
 {
     lblError.Text      = string.Empty;
     lblError.Visible   = false;
     lblSave.Text       = string.Empty;
     lblSave.Visible    = false;
     lblMessage.Visible = false;
     lblMessage.Text    = string.Empty;
     PagerRow.SetPageProperties(0, PagerRow.MaximumRows, true);
     if (!String.IsNullOrWhiteSpace(txtKeywords.Text))
     {
         hfKeywordSearch.Value = txtKeywords.Text.Trim();
     }
     DoBind();
 }