Click here to Skip to main content
16,018,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an older web page project that I added a panel control to. It fails to build as it does not recognize the new panel control. But existing panel controls work fine. This project was begun 18 years ago, as web pages. At some point it is morphed to a web application, so there are no designer pages. I continue to modify the project regularly. Is there a way to fix this?

The page builds and shows correctly whenever the code for the panel is removed in page-behind code.

What I have tried:

Moved the panel to various locations. Searched without success.
Posted

1 solution

Honestly, there's not enough to go on there. Does the code still build with the new panel or not? I can't really tell from your question whether it does. I know that you have removed the panel and the code is building when that's the case, so what you could do is put a basic panel control in your solution, with no functionality in it. Don't give it the same name as the old panel. Just create the control. Then try and use this control in your application. If that works, start to layer the behaviour you want back in to this new control.
 
Share this answer
 
Comments
BobbyStrain 19-Mar-24 10:21am    
The code does not build when there is code behind for it. With no code behind, it builds and the panel functions properly. Strange behavior.

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