SharePoint 2010: trying to understand life-cycle issues with visual web part?

When you set property in your webPart, you need to bubble it down to the User control See creating custom properties for visual webparts: patricklamber.blogspot.com/2010/05/how-d....

When you set property in your webPart, you need to bubble it down to the User control. See creating custom properties for visual webparts: patricklamber.blogspot.com/2010/05/how-d....

Sure. Do that already. I think it's a view state issue.

Just trying to figure out what to do. – paul Jan 11 at 14:16.

I am building a visual web part which has a number of user-configurable properties. The web part will display news items and, optionally, automatically switch to the next item after a defined pause. The problem I'm having is that the user control part has a timer which fires events.

These events reenter the user control (without going through the web part) and I see that when this happens the user control is in an unitialised state - i.e. The custom properties of the web part have not been applied. This causes the control to behave in it's default manner.

What am I doing wrong?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions