Is there a way to get all .aspx files on my website? Maybe iterating through the site file structure and adding to the array?
Directory.GetFiles(HttpContext.Current.Server.MapPath(@"/"), "*.aspx", SearchOption.AllDirectories);
using Directory.GetFiles ("*. aspx"), you can get all the files in a directory. And you can make it recursive to grab any subdirectories and their files.
Remember that you can define the .aspx page without having the actual file in the web.config file.
Source: https://habr.com/ru/post/1698150/More articles:View SQL Server - sql-serverTo switch HTML people in the middle of a stream - cssКак бы вы ссылались на поисковые/метаданные? - c#Report Processor Architecture Question - c #Is it okay to use normalized tables with denormalized indexed views? - sqlHow can I access the "displayed" text of the window selection option from the DOM? - javascriptHow can I use array references inside arrays in PHP? - arraysIs validation called before or after enforcement when setting DependencyProperty? - wpfLIKE in Linq to SQL - vb.netUsing Xdebug & Zend Debugger? - profilingAll Articles