Last post Feb 09, 2010 02:50 PM by shaker
Apr 13, 2006 03:09 PM|rmelancon|LINK
Why is the show all files button disabled in the solution for my Web project?
I attempted a conversion of a 1.1 site that the converter destroyed so now I am trying to piece things back together. One thing is that all of my form objects are undefined in the codebehind (now codeFile). So if I have a text box called Text1 I get an
error "Text1 is undefined" in the codeFile. I really HATE when things are generated behind the scenes and hidden from me and this is a primary reason. At least in 1.1 it showed you all the crap it generated for you. How the hell am I supposed to know what's
gone wrong when the compiler is generating stuff that I can't see nor get to? In searching for an answer I see all these refereces to the "Show All Files" option on the project/solution menu. Well the button for "Show All Files" is disabled on all my projects
so what now?
Thanks, and sorry I'm just a little aggravated at the moment.
Apr 13, 2006 04:12 PM|mbund|LINK
I'm sorry you are having these problems. First off (and this is advice to others) -- always make a backup! It just makes good sense whenever you run a program which will modify the source code of your project.
In the Web Site Project (WSP, the default web project in VS05 RTM), all control variables are generated in a hidden class which exists in memory. This is possible since in VS05 both C# and VB supports partial classes, and allows
us to separate auto-generated code such as control variables from user code -- this is a good thing in general.
"Show All Files" is grayed out since it is not needed in a WSP -- all files are already shown in the Solution Explorer. Since the hidden class is not a file, it is not shown.
I do admit it would be nice to see these hidden variables when you are trying to find a troublesome bug or you really want to know what is happening. Unfortunately, there is not an easy way to do it. However, you can trigger
a run-time error which will show the temp file created from the hidden class which will allow you to see what is generated.
Apr 13, 2006 06:24 PM|rmelancon|LINK
Apr 13, 2006 07:52 PM|mbund|LINK
That would be a bug. Could you create a simple reproducible case and send it to me as a zip file? You can send it to m b u n d @ m i c r o s o f t . c o m
Apr 14, 2006 08:56 AM|rmelancon|LINK
Just FYI I sent a zip file with the offending code.
May 28, 2007 04:47 AM|Selecters|LINK
My first post on this forum :)
I had the same problem, but I found why this could happen (for me at least).
In VS2005, if you choose File > new > new website. The result will be a project with a website on it, BUT you will not see the designer files.
BUT, if you use File > new > project > asp net web application ... The result will be a project with a website on it, BUT in this case you will see the designer files.
Jul 09, 2007 03:47 PM|rajanam|LINK
Since the 'Show All Files' icon button is disabled is there a way to hide the files 'Exclude(d) from Project'?
May 22, 2009 03:14 PM|Richard Waddell|LINK
"Show All Files" is grayed out since it is not needed in a WSP -- all files are already shown in the Solution Explorer.
In other words - it's not a bug, it's a feature.
Feb 09, 2010 02:50 PM|shaker|LINK
If that statement is true then where's the references item?
Are you assuming or do you know it for sure.