B
Bas
This is all the code, why doesn't it work? I have a datagrid that always
displays all records, even if I type a string in TextBox1. I also tried a
adoDbDataAdapter...
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
odbcDataAdapter1.Fill(dataSet11);
if (!IsPostBack)
{
DataGrid1.DataBind();
}
}
private void Button1_Click(object sender, System.EventArgs e)
{
dataSet11.Tables["Alle_Adressen"].Select("Zoeknaam like
'"+TextBox1.Text+"%'");
}
displays all records, even if I type a string in TextBox1. I also tried a
adoDbDataAdapter...
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
odbcDataAdapter1.Fill(dataSet11);
if (!IsPostBack)
{
DataGrid1.DataBind();
}
}
private void Button1_Click(object sender, System.EventArgs e)
{
dataSet11.Tables["Alle_Adressen"].Select("Zoeknaam like
'"+TextBox1.Text+"%'");
}