How to show error message in label when the searching data is not found in the database.
Can anyone help me in my problems ??
Thanks a lot :-)
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Asp.Net HeinRank #6,010 · 279 reputationPosted Jun 3, 2015, 7:38 PM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Jun 3, 2015, 7:46 PM EDT
Najjaf Shuja39 reputationPosted Jun 5, 2015, 3:08 AM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Jun 5, 2015, 4:37 AM EDT
Manoj BhoirRank #599 · 4K reputationPosted Jun 5, 2015, 5:16 AM EDT
DataClasses1DataContext db = new DataClasses1DataContext(); IQueryable catalogNo = db.Product_Details.Select(p => p.pcatalog); Then You can use .Any() if(catalogNo.Any()) { //I have Data!!! } else { //No data found }