TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
saifullah khan
NA
335
301.1k
create dynamic tab on button click
Jul 29 2011 9:42 AM
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!";
tab.Controls.Add(testbox);
TabContainer1.Tabs.Add(tab);
}
but when i click on button it does nothing can somebody tell me what is the problem?
Reply
Answers (
1
)
How to enable textbox based on checkbox checked
Gridview editing event