sqldatasource help

  • Thread starter Thread starter rodchar
  • Start date Start date
R

rodchar

hey all,
can someone please help me get the following snippet work?

protected void BtnSearch_Click(object sender, EventArgs e)
{
SqlDataSource4.SelectParameters.Add("@FirstName", TextBox1.Text);
SqlDataSource4.Select(DataSourceSelectArguments.Empty);
GridView1.DataSourceID = "SqlDataSource4";
GridView1.DataBind();
}
i'm not getting any results back.

thanks,
rodchar
 
Back
Top