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
Devendra Kumar
NA
517
243.2k
Select index changed for each loop repeat value
Jan 23 2016 2:17 AM
in this code label and text box show two time if i select one value than it show same name labels and show two text box,,,
protected void ddsize_SelectedIndexChanged(object sender, EventArgs e)
{
Panel1.Visible = true;
int Count = 0;
Count++;
foreach (ListItem item in ddsize.Items)
{
if (item.Selected)
{
for (int i = 0; i < Count; i++)
{
TextBox txt = new TextBox();
Label lbl = new Label();
lbl.Text = item.Text;
Panel1.Controls.Add(lbl);
Panel1.Controls.Add(txt);
}
}
}
}
Reply
Answers (
10
)
How to reset MultiHandleSliderExtender in asp.net
select table column in option button and updated table