hello.
i have to one webpage. it contains
curreny.dropdown
button and web chart.
i want these thing in a tab. when user select a currency and click on buton it show the chart. but i want to add another button that when i click on that button it automatically add another tab and show the same three thing and select the currency and click on ok so it start showing the chart but when i go to my first tab the chart i was being shown in that tab must be there. how is it possible. please tell me
Loading
saifullah khanPosted Jul 29, 2011, 9:39 AM
Jaganathan BantheswaranPosted Jul 29, 2011, 1:46 AM
Create Dynamic Tabs using AJAX tab container & add controls & read them dynamically?
Working with Tab Control : Part 1
Container Controls 3 : TabControl
ASP.NET 3.5: Enhanced tabbed pages
Jaganathan BantheswaranPosted Jul 29, 2011, 1:45 AM
Using Ajax tool kit,
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!";
tab.Controls.Add(testbox);
TabContainer1.Tabs.Add(tab);
}