Hi i can currently search the sql database using the following code, but i can only search using the Customer_firstname is there a way i can search for the surname as well as the firstname? i have found numerous tutorials and examples but all of the examples only use one datatype for the search.
protected void Button_cus_pmr_Click(object sender, EventArgs e)
{
//select all the data from the PMR table where it is equal to the text in the search text box
string staSearch = "select * FROM [PMR] where (Customer_Firstname like '%" + TextBox_cus_pmr.Text.ToString() + "%)";
SqlDataSource1.SelectCommand = staSearch;//perform the staSearch query on the SqlDataSource1
}