My web parts deployed yesterday morning very well. Cant recive code in my ascx. now getting error like this :

Error   CS1061  'announcementdescription_announcementdescription_ascx' does not contain a definition for 'objDescription' and no accessible extension method

enter image description here

  • There should be a code behind file for your UserControl named AnnouncementDescription.ascx.cs. Does it contain a property/field with the name objDescription? – LeonidasFett Feb 1 at 13:13
  • yes contains.But still same.. – mert Feb 7 at 5:03
  • Is your objDescription public/protected? – LeonidasFett Feb 7 at 9:15
  • my objDescription is protected – mert Feb 8 at 8:01

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.