Search code examples
.netasp.netvisual-studio-2008ascx

ASCX control not visible in design mode in VS2008


I have a custom ASCX control that is not visible in design mode in VS2008. It used to be, I changed nothing and now when I switch back to design mode, it is not visible. Has anyone ever face this situation?


Solution

  • Usually this will occur if you have bad tags in your ASCX file. Do this, open the ASCX (not the code-behind file) and hit CTRL+K then CTRL+D. That will reformat the tags cleanly. If you get an error, find it and fix it and it should resolve your problem.