Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why are code-behind files not visible in a VB.NET Web Application project?

I am trying to convert a VB.NET web site project to a web application project, yet the in web application project, my code-behind files are not visible unless I set the solution explorer "show all files" option. Why is this? What setting can I change so that my code behind files are always visible?

like image 406
ProfK Avatar asked Aug 17 '11 11:08

ProfK


People also ask

How can I see the code behind ASPX?

Right-click the . aspx page, and then click View Code. The code-behind file opens in the editor.

What are .aspx files explain code behind class file in detail?

If you use code-behind class files with . aspx pages, you can separate the presentation code from the core application logic (or code-behind). The code-behind class file is compiled so that it can be created and used as an object. This allows access to its properties, its methods, and its event handlers.


1 Answers

You can set VS to always show all files. That's the best soluution although a really ugly way to avoid this would be to rename the files for the code behind.

like image 157
jmoreno Avatar answered Sep 18 '22 12:09

jmoreno