Answered by:
VS2012 - Initialize control does not exist in the current context in ascx.g.cs file of visual web part

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 ?
- Moved by Max Meng Tuesday, May 7, 2013 5:29 AM
- Changed type Zoltán HorváthMVP Tuesday, May 7, 2013 11:33 AM it's a question
- Moved by Dave PatrickMVP Friday, December 19, 2014 1:46 PM
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
- Proposed as answer by Zoltán HorváthMVP Tuesday, May 7, 2013 11:43 AM
- Marked as answer by Just Karl Wednesday, May 22, 2013 2:25 AM
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
- Proposed as answer by Zoltán HorváthMVP Tuesday, May 7, 2013 11:43 AM
- Marked as answer by Just Karl Wednesday, May 22, 2013 2:25 AM
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/
- Proposed as answer by Ganesan Baskaran Friday, December 19, 2014 11:32 AM
Friday, December 19, 2014 11:31 AM -
https://ganpages.wordpress.com/2014/12/11/vs-2013-sharepoint-visual-webpart-ascx-g-cs-file-missing/
- Proposed as answer by Ganesan Baskaran Friday, December 19, 2014 11:32 AM
Friday, December 19, 2014 11:32 AM