Plz give soln
Here I've two datalists.and I want to enable one datalist by selecting an item in the drop down list( it is in user control).plz give me the solution.
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Amit ChoudharyRank #145 · 15.8K reputationPosted Feb 14, 2011, 1:53 AM EST
Write the code for enabling the second datalist in the selected_indexChanged event of first DataList.. and you'll be good to go..
Thanks..
Madhu KRank #1,514 · 1.1K reputationPosted Feb 14, 2011, 2:25 AM EST
If(DropDownList1.SelectedIndex==0)
{
// hide or enable the datalist controls according to requirement
DataList1.Visible=true;
DataList1.Enabled=true;
}else{DataList2.Visible=true; DataList2.Enabled=true;}
Sam HobbsRank #107 · 20.5K reputationPosted Feb 14, 2011, 1:43 PM EST
Suthish NairRank #92 · 22.8K reputationPosted Feb 15, 2011, 9:50 PM EST