Find all user management links in aspx or ascx files

I work on asp.net, with a large number of user controls (ascx) and webforms (aspx). I ran into a problem while I needed to find the links of a specific user control (where it is used in other controls or other web forms).

Right-click the class name of the user control and click Find All Links , only after finding the links used in the .cs files, it did not find the use of control in aspx or ascx .

Can any body suggest if there is a way to find the use of my control. or visual studio do not yet support this functionality.

+5
source share
2 answers

ReSharper can do it for you. Make rightclick → "find usages" in any of the .aspx, .ascx or .cs files.

+2
source

Another way is that the ascx file must be included in the aspx file. For example, if your control file is called "test.ascx", then in the aspx file it will say something like "~ / controls /" testing.ascx. Thus, a very simple way to see all the files that are included in ascx is through powershell.

powershell, , ( , ​​ "" , , ): GetChildItem -recurse | Select-String -pattern ", " | |

0

All Articles