Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: ASP
Posted by: Mario Lopes
Added: Sep 8, 2018 6:23 PM
Modified: Sep 8, 2018 6:32 PM
Views: 6
quais os elementos para que o fltro seja respeitado
  1. protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
  2.     {
  3. SqlDataSource1.SelectParameters.Clear();
  4.         SqlDataSource1.SelectCommand = Like_selecao;
  5.         SqlDataSource1.SelectParameters.Add("@a", txtPesquisa.Text);
  6.         SqlDataSource1.DataBind();
  7.         GridView1.DataBind();
  8. }
  9.