I am using the AJAX tab container. How to capture the click event of the tab,whether client side or server side,,Means suppose when i clikc on tab0,I want to execute the certain Code.
Just tell me how to handle the click event of the tab?
Printable View
I am using the AJAX tab container. How to capture the click event of the tab,whether client side or server side,,Means suppose when i clikc on tab0,I want to execute the certain Code.
Just tell me how to handle the click event of the tab?
Hey,
Have a look at the following video:
http://www.asp.net/learn/ajax-videos/video-156.aspx
Hope that helps!!
Gary
You have the OnClientActiveTabChanged property of the tab. Handle it and you can run some JS each time a tab is clicked. Use it like so:
OnClientActiveTabChanged="tabClicked"
And your JS:
Code:function tabClicked(sender, args){
var index = sender.get_activeTabIndex();
switch(index)
{
case 1:
break;
}
}
Thx its done!!!!!!!!!!
No problem :afrog: