Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 09, 2010 06:50 PM by shaker
Apr 13, 2006 07:09 PM|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 08:12 PM|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 10:24 PM|LINK
Apr 13, 2006 11:52 PM|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 12:56 PM|LINK
Just FYI I sent a zip file with the offending code.
May 21, 2007 10:17 PM|LINK
This Link shows a aspx.designer.cs file
There must be a way to see it it cant just be in
memory... how is it being displayed in this solution?
May 28, 2007 08:47 AM|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.
May 28, 2007 08:48 AM|LINK
sorry, double post
May 28, 2007 10:13 AM|LINK
I don’t have the option to select an asp net application. Is it under the templates section or under the main projects... Also I am using VS team addition.... What Version of VS are you using…
Jul 09, 2007 07:47 PM|LINK
Since the 'Show All Files' icon button is disabled is there a way to hide the files 'Exclude(d) from Project'?