Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello everyone,

i am using 3 asp:repeaters in my index page.I want to set the visibility of all these 3 asp:repeaters using a dropdownlist at the top. example: say i have a dropdownlist of all the subjects like music,general,sports etc.
Based on these values the asp:repeaters should display the value inside them.this is for a blog site.
i ve the values inserted in the database but while retrieving them to display in the repeaters i am having an issue.i am stuck in the retrieve query and how to use the dropdownlist to change the values of asp:repeater dynamically.

Any suggestions will be helpful to me .

Thanks in advance.
Posted
Updated 24-Jan-12 21:45pm
v2

1 solution

you are using 3 repeter controls in page then you can add style="display:none" for two repetes / div and show only one div.

with combo add onchange event in js and assign function in which you get then selected value of combo and then hide all repeters and show only respective div/repeter with div.style.display="" property
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900