I have a sandbox visual webpart (got it by installing SharePoint Power Tools) and in that I have a "Place Holder" control named "phMsg". I am adding a "BulletedList" control to that place holder in page prerender event.
protected void Page_PreRender(object sender, EventArgs e)
{
phMsg.Controls.Add(msg.MsgList);
}
The list of messages (bulleted list items) is not shown on page.
I am sure the control "BulletedList" has items (messages).
Please help!
Thanks,
Amit