wint100
asked on
Display list of all pages in a Virtual Directory C#
I'm looking for a way to populate a listbox with all the pages found in a vitual directory.
The UI will have an entry for the user to enter the path (e.g. http://servername.domain.com/path), I then need to get ll pages and sub folders within tis directory.
Does anyone know if this is possible?
Thanks
The UI will have an entry for the user to enter the path (e.g. http://servername.domain.com/path), I then need to get ll pages and sub folders within tis directory.
Does anyone know if this is possible?
Thanks
ASKER
From that you could do a search for all the .aspx, .html of the path and populate your listbox.
What search parameters should I use? Do you have any example code?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This doesn't seem to work in silverlight, I'll have to try a similar approach that is silverlight friendly.
Use Server.MapPath("http://servername.domain.com/path").
This will return the physical path on the server.
From that you could do a search for all the .aspx, .html of the path and populate your listbox.