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
Xiaoliang Ma
NA
6
3k
How to add value into Textbox from Textboxlist
Jul 31 2018 10:15 PM
I have below code to add int n into Textbox from Textboxlist, but when running this program, both textboxes dont have anything. Thanks in advance for any suggestion
private
void
btnLoad_Click(
object
sender, RoutedEventArgs e)
{
List<TextBox> IDtextBoxList =
new
List<TextBox>();
IDtextBoxList.Add(
new
TextBox { Text = txtboxpbM1.Text });
IDtextBoxList.Add(
new
TextBox { Text = txtboxpbM2.Text });
for
(
int
n = 0; n < IDtextBoxList.Count; n++)
{
IDtextBoxList[n].Text = n.ToString();
}
}
Reply
Answers (
1
)
Decouple Class Assistance
How to get only month in MVC