I use sharePoint foundation and i have developed a visual webpart using visual studio. Now i would like to add custom properties to my webpart.
I have added a property in the webpart class and i would like to consume the value of this property in the user control class.
the problem is that i have separated the user control from the visual webpart class i.e in my visual studio project i have created a folder in which i have put all the user control together and i put the class webpart together in another folder.
i noticed that when i create property in webpart class , i can't use it in the user control class.
How to get rid of my problem ?