D
dkode8
Hello,
I am creating an application that uses impersonation to log a user into
our domain and then show them the contents of their network share where
they store their files.
I have all the permissions and impersonation working correctly, Now I
have hit a snag on how to get my idea to work..
Right now i have default.aspx, and Directory.cs
inside Directory.cs is the class DirNavigator which has two public
properties: userPath, Current
userPath = full UNC path to their network share
Current = full path to the folder they are browsing after the userPath
I.E.:
userPath = "\\server\dkode"
Current = "Folder1\Folder2\Folder3
so once they are appended together,
\\server\dkode\Folder1\Folder2\Folder3
each time they browse to a different folder, it appends or subtracts
from Current.
The problem arises from the fact that I am storing dirNavigator
instance in the session, each time default.aspx loads, I show the
appropriate folder. When they click the back button, dirNavigator is
not updated and when they click on a different folder, it still thinks
they are one folder deeper then they are.
How else can I store the instance of dirNavigator so that it updates
itself and always has the current path they are working with. maybe a
hidden form variable? the folders can get pretty deep so I don't want
to pass the whole folder path in the querystring...
any suggestions?
Thank you!
DKode
I am creating an application that uses impersonation to log a user into
our domain and then show them the contents of their network share where
they store their files.
I have all the permissions and impersonation working correctly, Now I
have hit a snag on how to get my idea to work..
Right now i have default.aspx, and Directory.cs
inside Directory.cs is the class DirNavigator which has two public
properties: userPath, Current
userPath = full UNC path to their network share
Current = full path to the folder they are browsing after the userPath
I.E.:
userPath = "\\server\dkode"
Current = "Folder1\Folder2\Folder3
so once they are appended together,
\\server\dkode\Folder1\Folder2\Folder3
each time they browse to a different folder, it appends or subtracts
from Current.
The problem arises from the fact that I am storing dirNavigator
instance in the session, each time default.aspx loads, I show the
appropriate folder. When they click the back button, dirNavigator is
not updated and when they click on a different folder, it still thinks
they are one folder deeper then they are.
How else can I store the instance of dirNavigator so that it updates
itself and always has the current path they are working with. maybe a
hidden form variable? the folders can get pretty deep so I don't want
to pass the whole folder path in the querystring...
any suggestions?
Thank you!
DKode