ASP.NET : getting 'currentStyle' is null or not an object when adding webpanel dynamicly?

Thanks Brian for your concern. I find out that what was missing is css style class. I just setted the property cssClass dynamicly when creating my control and it works!

But what I still don't understand is why It's mandatory to set it dynamicly when you don't have to if you added it directly in design.

Well it depends. CurrentStyle is a variable or property that's being called, but there is no underlying reference. It could be with adding it dynamically (at what point do you do this), but probably not.

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