I have a search funtion on my website that binds the results to a datalist. Is it possible to count the results and if the results quals '0' write a error message such as 'No results found please try again' to the screen in a label perhaps??
Yep as above but put a label or literal in place where you want the message to appear and then replace //your message above with YourLiteral.Text = "No results returned" or something simillar.
Do remember to set EnableViewState to false for this control though!
Do remember to set EnableViewState to false for this control though!