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
Radim Motycka
NA
31
32k
Fill Literal with strings in Page_Load
Nov 1 2011 11:57 AM
Hello,
Pls would you advise, I am getting an arraylist from ascx to main aspx.
I am getting values correctly. If I add items into Listbox it fills correctly, but in the Literal there is only last one. Please advice what I am missing.
Many thanks
-------------------------------------------------------------------------------
protected void Page_Load(object sender, EventArgs e)
{
members.sendPageMessage += delegate(ArrayList message)
{
foreach (string item in message)
{
Literal1.Text = (string)item + "<br/>"; // only last item in arraylist
//ListBox1.Items.Add((string)item); //Works corectly
}
};
}
Reply
Answers (
3
)
I need Research Purpuse this Articles Need in Computer Science
Master Page in ASP.NET