asp.net - How do I detect new aspx file and get information from them? -


i'm developing website has modular section. when new aspx (and aspx.cs) file placed in subdirectory of application can ask class information...

the idea when file placed in directory new menu item added menu. need "ask class" name, icon, description, etc.

is there way determine class defined in codebehind file , instantiate instance of it?

i know , parse config file each plugin rather not have go route.

the "standard" method config file mention, in form of sitemap. you'll lot of features out of doing way, breadcrumbs , forth. know answer asked not get, there anyway.

if insist, though, there's nothing stopping using mappath , searching disk .aspx files, parsing them pull out info (like class name), , doing whatever like.

but sitemap better, unless have strange requirement. note sitemap can come database or dynamic source, doesn't have xml file.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -