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)

The list of messages (bulleted list items) is not shown on page.

I am sure the control "BulletedList" has items (messages).

Please help!


1 Answer 1


I added the control to ascx file before using it in code so that it get initiated.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.