How can show all data in the datalist if I click on All in dropdown list
And want I click dog on dropdownlist it will show all the dog item only how can it be done
Loading
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 attend4days leftRegister
Tan Kai Kai114 reputationPosted Jul 15, 2013, 6:34 PM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 15, 2013, 8:30 PM EDT
Not clear about your query. Can you please provide more details?
Regards,
Iftikar
Ravi ShekharRank #673 · 3.6K reputationPosted Jul 16, 2013, 1:37 AM EDT
Tan Kai Kai114 reputationPosted Jul 16, 2013, 2:47 AM EDT
and a datalist
want the dropdownlist show All
I will show all the item from the database but want is show cat
It only show all the item that are cat only and not show all
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 16, 2013, 2:57 AM EDT
if(ddlItem.SelectedValue=="ALL")
{
//select all the data and bind to datalist
}
else
{
//select passing the dropdownselected value to database to select corresponding data bind to datalist.
}
ex:- 1st query : Select * form itemtable
2nd query: Select * from itemtable where item='"+ddlItem.SelectedValue+"'
Tan Kai Kai114 reputationPosted Jul 16, 2013, 3:16 AM EDT
Tan Kai Kai114 reputationPosted Jul 16, 2013, 5:24 AM EDT