locked
VS2012 - Initialize control does not exist in the current context in ascx.g.cs file of visual web part RRS feed

  • Question

  • In Visual Studio 2012, visual web part ascx.g.cs file is sometime missing and throws an error like "Intialize control does not exist in current context". Any fixes for this issue.  I have tried many forumns they have told, create a new visual web part and paste your design code. Do you have any solution other than creating new web part or usercontrol creating in the VS2012 ?
    Monday, May 6, 2013 6:23 AM

Answers

  • I'd start by asking the question in a visual studio forum, rather than an office forum.

    al


    If this answer solves your problem, please check Mark as Answered. If this answer helps, please click the Vote as Helpful button. Al Edlund Visio MVP

    Monday, May 6, 2013 11:20 AM

All replies

  • I'd start by asking the question in a visual studio forum, rather than an office forum.

    al


    If this answer solves your problem, please check Mark as Answered. If this answer helps, please click the Vote as Helpful button. Al Edlund Visio MVP

    Monday, May 6, 2013 11:20 AM
  • Please refer this 

    https://ganpages.wordpress.com/2014/12/11/vs-2013-sharepoint-visual-webpart-ascx-g-cs-file-missing/ 

    Friday, December 19, 2014 11:31 AM
  • https://ganpages.wordpress.com/2014/12/11/vs-2013-sharepoint-visual-webpart-ascx-g-cs-file-missing/
    Friday, December 19, 2014 11:32 AM