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
Naresh Babu Gopavaram
1.5k
248
249k
Only last record is added in the List
Jul 25 2011 6:07 AM
List<LocationInfornationLocation> locatonsList = new List<LocationInfornationLocation>();
foreach (var item in businessEntityList)
{
lcoationInfo.LocationName = item.LocationDetails.LocationName.ToString() + "_" + item.LocationDetails.LocationId;
lcoationInfo.BusinessEntityId =Convert.ToUInt16(item.ID);
locatonsList.Add(lcoationInfo);
}
return locatonsList;
Hi I am getting 3 records from the database but when I do the above looping only 3rd record is displayed in place of 3 records .Can any one solve this please.
Reply
Answers (
2
)
Showing textbox text over image
String was in a correct format