Click here to Skip to main content
15,891,864 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I've added a new control to my aspx files and noticed that not only was the new control not added to the designer file but that it was also missing quite a few other controls that were added by other members of the team. I've tried deleting the designer.cs file and using "Convert to Web Application" with no success. Some other things i've tried have been excluding the aspx from the project, building, and then re-including with no success. I've also manually entered in a control that was missing in the designer into the designer. When I run after do so an error appears saying the control isn't defined, even though it actually is, and that I should check if I'm missing a directive.

The first control I added was copy and paste from a similar control and made necessary changes. But, i've also tried manually creating the control with the same results.
Posted
Updated 10-Jul-18 21:11pm
Comments
Sergey Alexandrovich Kryukov 28-Jun-11 11:46am    
How anyone can know from your description where you messed up? Where is your code?
--SA

From this and your previous questions, I believe you have serious issues in your entire solution/projects.
If this solution is not that large, then I would suggest that it may be in your best interest to have an experienced developer rebuild the solution from scratch or fix the existing issues (whichever is easier at this point) and then hand it back to you.
If you are using source control of some kind, you could also just revert back to the last "good" version that is in there and then reapply the changes from that point forward again.
 
Share this answer
 
Comments
Tech Code Freak 8-Mar-12 3:48am    
Good suggestion! 5up!
OFFTOPIC:

just a (a bit paranoic) tip, if the size of the project allows it, of course.

At the end of the afternoon before you live, do a *.zip/*.rar (or whatever format you like more) backup of the code-folder.

Keep the backups of the last 2 or 3 weeks as buffer, just in case. You never know what can happens on the next day.



Edit: Text corrections
 
Share this answer
 
v2
1. right-click .resx file
2. left-click: "Run Custom Tool"

Result: Designer.cs gets generated.
 
Share this answer
 
1. Close designer.cs.

2. Change your aspx file to design view.

3. Right-Click –> Refresh.

4. Save
 
Share this answer
 
Comments
Ralf Meier 20-Oct-17 2:20am    
I suppose the Enquirer solved his problem during the last 6 years ...
resx file set access modifier as public
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900