I have a dropdownlist contains Doctor's name.This names are brought from Database.Based on Doctor's name selection,the gridview contains Patients list will be generated from database.When the particular Doctor's name selected,the revelant patient names are shown in gridview.But if the particula Doctor doesn't have any patients then the page is blank.Now i've to show an alert about that particular doctor doesn't have any patients.Can anyone help me?
DropdownList - Gridview - Show alert when no data available
Hi,
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 2, 2013, 11:44 PM EDT
you have to write your msg here
EmptyDataText= "doctor doesn't have any patients"
if it helps you mark it as answered
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 2, 2013, 11:25 PM EDT
Can you provide your aspx and code behind code?
Regards,
Iftikar
Kavi sujaRank #6,237 · 272 reputationPosted Jul 2, 2013, 11:52 PM EDT