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?

enter image description here

you use activetab property, example(in activetabchanged):

if(tabcontainer1.activetab.equals(colorlisttab)){  } 

or use activetabindex:

if(tabcontainer1.activetabindex == 1){ //second tab  } 

http://www.dotnetcurry.com/showarticle.aspx?id=178


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -