Y
yashgt
On a page, I need to show one item at a time. The top of the page has a
Previous-Next control, followed by the item being shown, followed by
another Previous-Next control. I have created a P-N user control and
customized it to fire an event, OnChange, when a Previous or Next
button is clicked, which is handled by the containing page. The handler
takes the ID of the current item from the eventargs and displays the
proper item with the ID in the center. But In addition, I want the
other P-N control also to reach the same state as the one that fired
the event. So the CurrentID property of both the P-N controls would be
the same.
Any design suggestions?
Thanks,
Yash
Previous-Next control, followed by the item being shown, followed by
another Previous-Next control. I have created a P-N user control and
customized it to fire an event, OnChange, when a Previous or Next
button is clicked, which is handled by the containing page. The handler
takes the ID of the current item from the eventargs and displays the
proper item with the ID in the center. But In addition, I want the
other P-N control also to reach the same state as the one that fired
the event. So the CurrentID property of both the P-N controls would be
the same.
Any design suggestions?
Thanks,
Yash