Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find all references for user control in aspx or ascx files

I am working on asp.net website, having large number of user controls(ascx) and webforms(aspx). I am facing problem while I need to find references of any specific user control (where it is used in another controls or other webforms).

By Right click on user control's class name, and click on Find All References only finds the references that used in .cs files, it did not find the control's usage in aspx or ascx files.

Can any body suggest is there any way to find the usage of my control. or visual studio does not support any such functionality yet.

like image 865
user1357909 Avatar asked Apr 26 '12 06:04

user1357909


People also ask

What is ASPX and ASCX?

aspx: The file extension of Web page. webpage provides a graphical user interface (text, images, buttons, etc.), using which you can design the page which will be rendered to user on browser. . ascx: The file name extension for the user control.

How many types of user controls are there in asp net?

Notice that the user control looks much like an ASP.NET page — it contains several controls (a TextBox control and two Button controls) and code that handles the buttons' Click events and the page's Load event.


1 Answers

ReSharper can do this for you. Do rightclick -> "find usages" in any of the .aspx, .ascx or .cs files.

like image 139
bitbonk Avatar answered Oct 23 '22 02:10

bitbonk