Start here.
http://msdn2.microsoft.com/en-us/lib...rs(VS.71).aspx
You might just want to try testing the number of rows that were returned, I
suspect there are zero rows returned.
--
Regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on
www.lulu.com/owc $19.99
-------------------------------------------------------
"rodchar" <ro*****@discussions.microsoft.comwrote in message
news:B5**********************************@microsof t.com...
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.Em pty);
GridView1.DataSourceID = "SqlDataSource4";
GridView1.DataBind();
}
i'm not getting any results back.
thanks,
rodchar