Click here to Skip to main content
15,923,120 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi Friends,

I have created tab panel dynamically and trying to display them now by using following code:

//creating a new TabPanel that is associated with the TabID
AjaxControlToolkit.TabPanel tab = new AjaxControlToolkit.TabPanel();
tab.HeaderText = dirList[i];
tab.ID = "ID" + i+1;
//Adding the TabPanel to the TabContainer that contains the dynamic tabs
TabContainer1.Tabs.Add(tab);

Now I am interested to capture click event of these dynamically generated tabpanels.
I think we can do in the following way:
but this is not working out:
if(tab.selectedevent =="dirList[i]")
{

}
Posted

1 solution

JavaScript
You can do like this in JQuery
$("#abpanelid").live('click',function()
{
//Your codes
});
 
Share this answer
 
Comments
apr1234 17-Jul-14 14:05pm    
But panel-id is generated dynamically rite? How to use panel id in Jquery?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900