asp.net - How do I know if a tab is selected? -
i trying report based on different information located in tabs. how know if tab selected? looked like:
if(colorlisttab.isselected) { }
but no luck! can guys me out this?
you use activetab
property, example(in activetabchanged
):
if(tabcontainer1.activetab.equals(colorlisttab)){ }
or use activetabindex
:
if(tabcontainer1.activetabindex == 1){ //second tab }
Comments
Post a Comment