Click here to Skip to main content
15,919,931 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to create dynamic tab on button click. here is the code.
protected void Button1_Click(object sender, EventArgs e)
AjaxControlToolkit.TabPanel tab = new AjaxControlToolkit.TabPanel(); // creating new tab panel.

Random rand = new Random();
string randnum = rand.Next(100).ToString();

tab.HeaderText = "Tab number" + randnum;
tab.ID = "tab" + randnum;

TextBox testbox = new TextBox();

testbox.Text="Hello, world!";




but when i click on button it does nothing can somebody tell me what is the problem?
Updated 29-Jul-11 4:06am

1 solution

Share this answer
Uday P.Singh 29-Jul-11 12:04pm    
nice links my 5!
saifullahiit 29-Jul-11 16:14pm    
you the gr8. thanks alot
thatraja 29-Jul-11 18:51pm    
You welcome
Espen Harlinn 30-Jul-11 7:36am    
Nice links, my 5

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