change selected index of repeater on click of button
I have 2 panels : left panel and right panel.
- Left Panel - contents of a book...
- Right Panel - consists of the content
User select any topic from left panel and display its content in right panel. For left panel I'm using repeater control. On right panel I have 2 button : next and previous.
My question is : How could I make the topic on the left panel selected when user clicks the next or开发者_如何学JAVA previous buttons?
Instead of a repeater use the ListView control. This is basically a repeater with some extra functionality including the ability to set the SelectedIndex
property.
精彩评论