I can use the DirectoryInfo class to find local directories to populate my ListBox server control, but when I try to use it on a network share which uses a different usr and pwd, I get an error. I dont see how to change them to get a list of directories.
I looked into the DirectoryEntry and DirectoryEntries classes where I can specify a usr and pwd, but I cant get at the children for some reason.
any tips, hints or code examples are greatly appreciated.
I looked into the DirectoryEntry and DirectoryEntries classes where I can specify a usr and pwd, but I cant get at the children for some reason.
any tips, hints or code examples are greatly appreciated.