sqldatasource help

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,586
Members
45,093
Latest member
EmiliaAlfo

Latest Threads

Top