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
Vikas Ahlawat
NA
564
819.2k
How apply loop?
Oct 13 2009 1:34 AM
i have 10 labels on my form.
named label1,label2...........................label10
i want to fill the text in that , simply we do label1.Text="abc";
but i want to fill it through loop , because i have some condition
for (int i = 1; i <= 10; i++)
{
if (ds.Tables["Papers"].Rows[0][i].ToString()!= null)
{
// here i want the label names accroding to the value of i , ex :- if i=1 then here label1.text="abc";
and when i=2 then label2.text="abc";
how can i do this
}
}
Reply
Answers (
6
)
Search In Database on value with some Parameters by Textbox and if found bring its correspond Data and if not give message said No Data exist ???????
How to Implementing Optimistic concurrency in code?